Skip to content

Commit

Permalink
Make reactive with type
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman committed Oct 1, 2024
1 parent c1c1ffb commit a2d0154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/event/event-details-link.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
});
$: nexusEndpointLink = routeForNexusEndpoint(value);
const hrefs: Record<Exclude<EventLinkType, 'none'>, string> = {
$: hrefs = {
execution: executionLink,
'task-queue': taskQueueLink,
'child-workflow': childWorkflowLink,
'nexus-endpoint': nexusEndpointLink,
};
} as Record<Exclude<EventLinkType, 'none'>, string>;
$: href = hrefs[type];
</script>
Expand Down

0 comments on commit a2d0154

Please sign in to comment.