remove useless action
This commit is contained in:
parent
2d35d38894
commit
88b2a25b00
@ -19,7 +19,6 @@ export const useTicketStore = create<TicketStore>()(
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const setTickets = (tickets: Ticket[]) => useTicketStore.setState(({ tickets }));
|
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) => {
|
export const addOrUpdateTicket = (updatedTicket: Ticket) => {
|
||||||
const state = useTicketStore.getState();
|
const state = useTicketStore.getState();
|
||||||
|
Loading…
Reference in New Issue
Block a user