mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: format condition for attribute import check in DataSourceGenerator
This commit is contained in:
@@ -54,7 +54,9 @@ export class DataSourceGenerator {
|
||||
// Check if we need the attr import (for list/map/set types)
|
||||
const needsAttrImport: boolean = Object.values(dataSource.schema).some(
|
||||
(attr: any) => {
|
||||
return attr.type === "list" || attr.type === "map" || attr.type === "set";
|
||||
return (
|
||||
attr.type === "list" || attr.type === "map" || attr.type === "set"
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user