mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 09:17:08 +02:00
lint
This commit is contained in:
parent
25e9f06763
commit
4f4e60ae3b
|
|
@ -238,12 +238,14 @@ export function normalizeRows(
|
|||
if (type === 'json') {
|
||||
try {
|
||||
if (typeof value === 'string') {
|
||||
const result = JSON.parse(value);
|
||||
const result = JSON.parse(value) as unknown;
|
||||
if (typeof result !== 'object') throw new Error();
|
||||
normalized[key] = result;
|
||||
normalized[key] = result as DataTableColumnJsType;
|
||||
}
|
||||
} catch (e) {
|
||||
throw new UserError(`Received invalid json object input for column '${key}': '${value}'`);
|
||||
throw new UserError(
|
||||
`Received invalid json object input for column '${key}': '${JSON.stringify(value)}'`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user