From 88b2a25b0070d08b8bcd1c564d2aa6d9aa29a233 Mon Sep 17 00:00:00 2001 From: nflnkr Date: Wed, 22 Mar 2023 12:22:45 +0300 Subject: [PATCH] remove useless action --- src/stores/tickets.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/stores/tickets.ts b/src/stores/tickets.ts index f003498..0e110e4 100644 --- a/src/stores/tickets.ts +++ b/src/stores/tickets.ts @@ -19,7 +19,6 @@ export const useTicketStore = create()( ); export const setTickets = (tickets: Ticket[]) => useTicketStore.setState(({ tickets })); -export const addTickets = (tickets: Ticket[]) => useTicketStore.setState(state => ({ tickets: [...state.tickets, ...tickets] })); export const addOrUpdateTicket = (updatedTicket: Ticket) => { const state = useTicketStore.getState();