Update Navigation service

- Update service to cope with changes to the graphql Record query
This commit is contained in:
Clemente Raposo 2020-03-12 18:06:35 +00:00 committed by Dillon-Brown
parent 2f3df6be46
commit 9486eec316

View file

@ -21,10 +21,10 @@ export class NavigationMetadata {
constructor(private recordGQL: RecordGQL) {}
public fetch(): Observable<any> {
const id = '1';
const id = '/api/navbars/1';
return this.recordGQL
.fetch(this.resourceName, id, this.fieldsMetadata)
.valueChanges.pipe(map(({data}) => data.navbar));
.pipe(map(({data}) => data.navbar));
}
}