Skip to content

Commit a6bef61

Browse files
committed
fix: avoid collecting undefined integration ids
1 parent 6ba4e28 commit a6bef61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/notebooks/deepnote/integrations/integrationUtils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export async function scanBlocksForIntegrations(
2929
for (const block of blocks) {
3030
const integrationId = block.sql_integration_id;
3131

32+
// Skip blocks without integration IDs
33+
if (!integrationId) {
34+
continue;
35+
}
36+
3237
// Skip excluded integrations (e.g., internal DuckDB integration)
3338
if (integrationId === DATAFRAME_SQL_INTEGRATION_ID) {
3439
logger.trace(`${logContext}: Skipping excluded integration: ${integrationId} in block ${block.id}`);
@@ -54,5 +59,6 @@ export async function scanBlocksForIntegrations(
5459
}
5560

5661
logger.debug(`${logContext}: Found ${integrations.size} integrations`);
62+
5763
return integrations;
5864
}

0 commit comments

Comments
 (0)