We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a04100 commit 68caf66Copy full SHA for 68caf66
src/models/Group.ts
@@ -10,6 +10,7 @@ type Binding = {
10
rules: {
11
type: string;
12
operator: string;
13
+ key: string;
14
value: string;
15
}[];
16
};
@@ -28,12 +29,12 @@ export class Group extends BaseModel implements Partial<JsonApiMapping> {
28
29
super(data);
30
this.name = data?.attributes?.name ?? data?.name ?? '';
31
this.description = data?.attributes?.description ?? data?.description ?? '';
- this.bindings = data?.attributes?.bindings ?? [];
32
+ this.bindings = data?.attributes?.bindings ?? data?.bindings ?? [];
33
}
34
35
jsonApiMapping() {
36
return {
- attributes: ['name', 'description'],
37
+ attributes: ['name', 'description', 'bindings'],
38
relationships: {},
39
40
0 commit comments