mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Update Navigation service
- Update service to cope with changes to the graphql Record query
This commit is contained in:
parent
2f3df6be46
commit
9486eec316
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue