Update deps, ticket edit updates

This commit is contained in:
Darren Clarke 2024-08-06 08:36:03 +02:00
parent aa453954ed
commit 2d892779bf
19 changed files with 1753 additions and 7776 deletions

View file

@ -170,7 +170,13 @@ export const getTicketTagsAction = async () => {
path: "/api/v1/tags",
});
return states;
const formattedStates =
states?.map((state: any) => ({
value: state.id,
label: state.name,
})) ?? [];
return formattedStates;
};
export const getTicketPrioritiesAction = async () => {
@ -178,5 +184,11 @@ export const getTicketPrioritiesAction = async () => {
path: "/api/v1/ticket_priorities",
});
return priorities;
const formattedPriorities =
priorities?.map((priority: any) => ({
value: priority.id,
label: priority.name,
})) ?? [];
return formattedPriorities;
};