summaryrefslogtreecommitdiffhomepage
path: root/src/components/Table.test.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-19 15:31:57 +0900
committerAdam Malczewski <[email protected]>2026-06-19 15:31:57 +0900
commit83dd6624ba4e163ee0f72d25d97a48ad4f245791 (patch)
tree1cbdbaec8caab61a51f64ba0ff54adbe3f222fcc /src/components/Table.test.ts
parentb74357495e443ff6011531d296560caff9398a14 (diff)
downloaddispatch-web-83dd6624ba4e163ee0f72d25d97a48ad4f245791.tar.gz
dispatch-web-83dd6624ba4e163ee0f72d25d97a48ad4f245791.zip
fix: silence state_referenced_locally warning + sync draft model on catalog fetch
- Use DEFAULT_MODEL directly when creating the initial draft store instead of reading the $state activeModel in a non-reactive context (init-time read only captures the initial value — semantically identical since activeModel === DEFAULT_MODEL at that point, but silences the Svelte state_referenced_locally warning). - Sync the draft store's model when the model catalog fetch corrects activeModel (default not in catalog). Without this, chat.send would use the stale DEFAULT_MODEL while the UI showed the corrected model.
Diffstat (limited to 'src/components/Table.test.ts')
0 files changed, 0 insertions, 0 deletions