Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit 6054afa

Browse files
authored
Merge pull request #421 from statelyai/revert-420-davidkpiano/fix-action-viz
Revert "Fix ActionViz"
2 parents 27cbf4d + d3ca860 commit 6054afa

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.changeset/fast-taxis-smash.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/ActionViz.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,9 @@ export const ActionType: React.FC<{ title?: string }> = ({
6464
export const RaiseActionLabel: React.FC<{
6565
action: PotentiallyStructurallyCloned<RaiseAction<EventObject>>;
6666
}> = ({ action }) => {
67-
const eventType =
68-
typeof action.event === 'object' && action.event !== null
69-
? action.event.type ?? <em>unknown</em>
70-
: `${action.event}`;
71-
7267
return (
7368
<ActionType>
74-
<strong>raise</strong> {eventType}
69+
<strong>raise</strong> {action.event}
7570
</ActionType>
7671
);
7772
};

0 commit comments

Comments
 (0)