Skip to content

Commit 2f96b9f

Browse files
feat: SKFP-1421 fix sort conf
1 parent 80fae9f commit 2f96b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/sortConf.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from 'node:fs';
21
import assert from 'node:assert/strict';
2+
import fs from 'node:fs';
33

44
const sortConf = conf => {
55
const indices = conf.indices;
@@ -15,7 +15,7 @@ const sortConf = conf => {
1515
.filter(m => m.graphqlField === x)
1616
.map(x => x.field)
1717
.sort()
18-
.map(x => ({ ...mutations.find(m => m.field === x) }));
18+
.map(y => ({ ...mutations.find(m => m.field === y && m.graphqlField === x) }));
1919
return [...xs, ...elWithSameGqlField];
2020
}, []);
2121

0 commit comments

Comments
 (0)