Fix assert not null lint warning (#2324)
This commit is contained in:
@ -15,7 +15,12 @@ export const convertFieldsToGraphQL = (
|
|||||||
let fieldAlias = key;
|
let fieldAlias = key;
|
||||||
|
|
||||||
if (fieldsMap.has(key)) {
|
if (fieldsMap.has(key)) {
|
||||||
const metadata = fieldsMap.get(key)!;
|
const metadata = fieldsMap.get(key);
|
||||||
|
|
||||||
|
if (!metadata) {
|
||||||
|
throw new Error(`Field ${key} not found in fieldsMap`);
|
||||||
|
}
|
||||||
|
|
||||||
const entries = Object.entries(metadata.targetColumnMap);
|
const entries = Object.entries(metadata.targetColumnMap);
|
||||||
|
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user