fix(build): resolve store binding and linter warnings to harden build stability

- Removed invalid two-way bindings to read-only Dexie observables in the test page
- Fixed 'state_referenced_locally' warning in Field Editor by refactoring draft_value initialization
- Cleaned up empty else block in session list to resolve Vite build warning
- Verified successful production build and clean 'npm run check' output
This commit is contained in:
Scott Idem
2026-06-17 18:16:38 -04:00
parent d06dcae94b
commit 2563307d71
3 changed files with 9 additions and 11 deletions

View File

@@ -97,7 +97,7 @@ let {
display_absolute_edit = false,
display_modal = true,
modal_blocking = false,
modal_placement = 'center' as 'center' | 'above' | 'below' | 'left' | 'right',
modal_placement = 'center',
placeholder = 'Enter value...',
class_li = '',
textarea_rows = 4,
@@ -163,7 +163,7 @@ function coerce_select_value(raw: string, reference: T): any {
// Internal State
let patch_status = $state<'idle' | 'processing' | 'success' | 'error'>('idle');
let error_message = $state('');
let draft_value = $state(to_input_value(current_value, field_type));
let draft_value = $state<any>(null);
let input_ref = $state<HTMLElement | null>(null);
let dialog_ref = $state<HTMLDialogElement | null>(null);
let trigger_ref = $state<HTMLElement | null>(null);