feature/sidebar-empresa-refresh
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user