Skip to content

Commit 7413b77

Browse files
committed
fix(mothership): apply workspace scope to table in processContextsServer
1 parent 58d734c commit 7413b77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/lib/copilot/chat/process-contents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ export async function processContextsServer(
116116
currentWorkspaceId
117117
)
118118
}
119-
if (ctx.kind === 'table' && ctx.tableId) {
120-
const result = await resolveTableResource(ctx.tableId)
119+
if (ctx.kind === 'table' && ctx.tableId && currentWorkspaceId) {
120+
const result = await resolveTableResource(ctx.tableId, currentWorkspaceId)
121121
if (!result) return null
122122
return { type: 'table', tag: ctx.label ? `@${ctx.label}` : '@', content: result.content }
123123
}

0 commit comments

Comments
 (0)