Skip to content

Commit 09436c0

Browse files
authored
fix: resolve 404 error when opening draft ticket in new tab (#1427)
1 parent bb42163 commit 09436c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/people/WorkSpacePlanner/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,11 @@ const WorkspacePlanner = observer(() => {
283283
{}
284284
);
285285

286-
const handleCardClick = (bountyId: string, status?: BountyCardStatus, ticketGroup?: string) => {
286+
const handleCardClick = (bountyId: string, status?: BountyCardStatus, ticket_uuid?: string) => {
287287
bountyCardStore.saveFilterState();
288-
if (status === 'DRAFT' && ticketGroup) {
288+
if (status === 'DRAFT' && ticket_uuid) {
289289
const ticketUrl = history.createHref({
290-
pathname: `/workspace/${uuid}/ticket/${ticketGroup}`,
290+
pathname: `/workspace/${uuid}/ticket/${ticket_uuid}`,
291291
state: { from: `/workspace/${uuid}/planner` }
292292
});
293293
console.log('Opening ticket URL:', ticketUrl);
@@ -353,7 +353,7 @@ const WorkspacePlanner = observer(() => {
353353
<BountyCardComp
354354
key={card.id}
355355
{...card}
356-
onclick={() => handleCardClick(card.id, card.status, card.ticket_group)}
356+
onclick={() => handleCardClick(card.id, card.status, card.ticket_uuid)}
357357
/>
358358
))
359359
)}

0 commit comments

Comments
 (0)