fix: Correct incomplete $state initialization in multiple Svelte components and pages.

This commit is contained in:
2025-12-02 19:18:53 -03:00
parent 4bd9e21748
commit 8a50fb6f61
99 changed files with 520 additions and 519 deletions

View File

@@ -9,15 +9,15 @@
const client = useConvexClient();
const acoesQuery = useQuery(api.acoes.list, {});
const acoes = $derived(acoesQuery.data || []);
let acoes = $derived(acoesQuery.data || []);
let searchQuery = $state('');
const searchResultsQuery = useQuery(api.objetos.search, () => ({
query: searchQuery
}));
const searchResults = $derived(searchResultsQuery.data);
let searchResults = $derived(searchResultsQuery.data);
const formData = $state({
let formData = $state({
numeroSei: ''
});
let creating = $state(false);
@@ -33,7 +33,7 @@
};
let selectedItems = $state<SelectedItem[]>([]);
const selectedObjetoIds = $derived(selectedItems.map((i) => i.objeto._id));
let selectedObjetoIds = $derived(selectedItems.map((i) => i.objeto._id));
// Item configuration modal
let showItemModal = $state(false);