feature/sidebar-empresa-refresh

This commit is contained in:
2026-04-24 09:30:35 -06:00
parent 38d10e6f51
commit bbe0b5c024
4 changed files with 10 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
import * as Tabs from "$lib/components/ui/tabs";
import { Switch } from "$lib/components/ui/switch";
import { createCompany, updateCompany, type Company } from "$lib/api/dashboard/a76/general_catalogs/company";
import { companyStore } from "$lib/stores/company.svelte";
let {
open = $bindable(false),
@@ -140,6 +141,7 @@
throw new Error(response.error);
}
await companyStore.loadCompanies();
open = false;
if (onSuccess) onSuccess();
} catch (e) {