mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-09 20:33:09 +00:00
parent
1b5e5972f4
commit
9cf12a187c
@ -8,6 +8,7 @@ import { DeleteTenantRequest } from "@chirpstack/chirpstack-api-grpc-web/api/ten
|
||||
|
||||
import TenantStore from "../../stores/TenantStore";
|
||||
import DeleteConfirm from "../../components/DeleteConfirm";
|
||||
import SessionStore from "../../stores/SessionStore";
|
||||
import Admin from "../../components/Admin";
|
||||
import EditTenant from "./EditTenant";
|
||||
import TenantDashboard from "./TenantDashboard";
|
||||
@ -23,6 +24,7 @@ function TenantLayout({ tenant }: { tenant: Tenant }) {
|
||||
req.setId(tenant.getId());
|
||||
|
||||
TenantStore.delete(req, () => {
|
||||
SessionStore.setTenantId("");
|
||||
navigate("/tenants");
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user