Fix schema versions order (#1413)
This commit is contained in:
parent
5016a11333
commit
d0761e2040
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ export const fetchSchemaVersions = createAsyncThunk<
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const schemaVersionsAdapter = createEntityAdapter<SchemaSubject>();
|
const schemaVersionsAdapter = createEntityAdapter<SchemaSubject>({
|
||||||
|
selectId: ({ id }) => id,
|
||||||
|
sortComparer: (a, b) => b.id - a.id,
|
||||||
|
});
|
||||||
const schemasAdapter = createEntityAdapter<SchemaSubject>({
|
const schemasAdapter = createEntityAdapter<SchemaSubject>({
|
||||||
selectId: ({ subject }) => subject,
|
selectId: ({ subject }) => subject,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue