Skip to content

Commit

Permalink
delete network
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Aug 9, 2023
1 parent 0b063e4 commit c4e9ffb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/server/api/routers/networkRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,9 @@ export const networkRouter = createTRPCRouter({
.mutation(async ({ ctx, input }) => {
try {
// Delete ZT network
const createCentralNw = await ztController.network_delete(
input.nwid,
input.central,
);
const createCentralNw = await ztController
.network_delete(input.nwid, input.central)
.catch(() => []); // Ignore errors

if (input.central) return createCentralNw;

Expand Down

0 comments on commit c4e9ffb

Please sign in to comment.