Skip to content

Commit

Permalink
Merge pull request stakwork#725 from stakwork/fix/text-editor-update
Browse files Browse the repository at this point in the history
fix: check for UUID from the backend instead of uuid
  • Loading branch information
humansinstitute authored Dec 8, 2024
2 parents a79becd + d8d5b07 commit 2ed8153
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/people/widgetViews/PhasePlannerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ const PhasePlannerView: React.FC = observer(() => {
const refreshSingleTicket = async (ticketUuid: string) => {
try {
const ticket = await main.getTicketDetails(ticketUuid);
phaseTicketStore.updateTicket(ticket.uuid, ticket);

// TODO: Backend needs to send this as uuid and not UUID
phaseTicketStore.updateTicket(ticket.uuid || ticket.UUID, ticket);
} catch (error) {
console.error('Error on refreshing ticket:', error);
}
Expand Down

0 comments on commit 2ed8153

Please sign in to comment.