Fix npm run check errors

This commit is contained in:
Leszek Hanusz 2026-02-03 02:22:22 +01:00
parent f42d889a47
commit 9dc75f2664
2 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -66,7 +66,10 @@
if (notebookModel == null) {
notebookModel = activeModelId;
}
await notebookStore.generate(notebookModel);
if (notebookModel) {
await notebookStore.generate(notebookModel);
}
}
function handleUndo() {
@ -127,7 +130,7 @@
let canGenerate = $derived(inputContent.length > 0 && hasModelSelected && isSelectedModelInCache);
let isDisabled = $derived(!canGenerate);
let notebookModel = $state(null);
let notebookModel = $state<string | null>(null);
const { handleModelChange } = useModelChangeValidation({
getRequiredModalities: () => ({ vision: false, audio: false }), // Notebook doesn't require modalities