Skip to content

Commit cbb3f7e

Browse files
ArtuomkaCopilot
andauthored
Update backend/src/entities/ai/ai.service.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d2141e0 commit cbb3f7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/src/entities/ai/ai.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ IMPORTANT: For each widget, include appropriate widget_params based on the colum
312312
.filter((w) => validColumnNames.includes(w.field_name))
313313
.map((widgetData) => {
314314
const widgetType = this.mapWidgetType(widgetData.widget_type);
315-
if (widgetType === WidgetTypeEnum.Foreign_key) {
315+
if (!widgetType || widgetType === WidgetTypeEnum.Foreign_key) {
316316
return null;
317317
}
318318
const widget = new TableWidgetEntity();

0 commit comments

Comments
 (0)