diff --git a/libs/shinkai-message-ts/src/api/jobs/types.ts b/libs/shinkai-message-ts/src/api/jobs/types.ts index 635bd9ff6..5db0320f7 100644 --- a/libs/shinkai-message-ts/src/api/jobs/types.ts +++ b/libs/shinkai-message-ts/src/api/jobs/types.ts @@ -83,7 +83,7 @@ export type CreateJobRequest = { }; associated_ui: { Sheet: string; - }; + } | null; is_hidden: boolean; }; }; diff --git a/libs/shinkai-node-state/src/v2/mutations/createJob/index.ts b/libs/shinkai-node-state/src/v2/mutations/createJob/index.ts index 645171c4b..da139c7f1 100644 --- a/libs/shinkai-node-state/src/v2/mutations/createJob/index.ts +++ b/libs/shinkai-node-state/src/v2/mutations/createJob/index.ts @@ -36,9 +36,7 @@ export const createJob = async ({ local_vrkai: [], network_folders: [], }, - associated_ui: { - Sheet: sheetId ?? '', - }, + associated_ui: sheetId ? { Sheet: sheetId } : null, is_hidden: isHidden, }, });