Fix seeds for local workspace and newly created workspaces (#2333)
* Update metadata/data seeds * fix * fix * move seeding into a transaction * add no-non-null-assertion --------- Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
This commit is contained in:
@ -15,7 +15,8 @@ export const convertFieldsToGraphQL = (
|
||||
let fieldAlias = key;
|
||||
|
||||
if (fieldsMap.has(key)) {
|
||||
const metadata = fieldsMap.get(key);
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const metadata = fieldsMap.get(key)!;
|
||||
|
||||
if (!metadata) {
|
||||
throw new Error(`Field ${key} not found in fieldsMap`);
|
||||
|
||||
Reference in New Issue
Block a user