fix: Correct incomplete $state initialization in multiple Svelte components and pages.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
import ActionGuard from '$lib/components/ActionGuard.svelte';
|
||||
|
||||
const client = useConvexClient();
|
||||
const instanceId = $derived($page.params.id as Id<'flowInstances'>);
|
||||
let instanceId = $derived($page.params.id as Id<'flowInstances'>);
|
||||
|
||||
// Query da instância com passos
|
||||
const instanceQuery = useQuery(api.flows.getInstanceWithSteps, () => ({
|
||||
@@ -18,7 +18,7 @@
|
||||
const usuariosQuery = useQuery(api.usuarios.listar, {});
|
||||
|
||||
// Query de usuários por setor para atribuição
|
||||
const usuariosPorSetorQuery = $state<ReturnType<
|
||||
let usuariosPorSetorQuery = $state<ReturnType<
|
||||
typeof useQuery<typeof api.flows.getUsuariosBySetorForAssignment>
|
||||
> | null>(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user