Update deps, ticket edit updates
This commit is contained in:
parent
aa453954ed
commit
2d892779bf
19 changed files with 1753 additions and 7776 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue