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

Commit

Permalink
Revert "Fix ActionViz"
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano authored Aug 4, 2023
1 parent 27cbf4d commit d3ca860
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions .changeset/fast-taxis-smash.md

This file was deleted.

7 changes: 1 addition & 6 deletions src/ActionViz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,9 @@ export const ActionType: React.FC<{ title?: string }> = ({
export const RaiseActionLabel: React.FC<{
action: PotentiallyStructurallyCloned<RaiseAction<EventObject>>;
}> = ({ action }) => {
const eventType =
typeof action.event === 'object' && action.event !== null
? action.event.type ?? <em>unknown</em>
: `${action.event}`;

return (
<ActionType>
<strong>raise</strong> {eventType}
<strong>raise</strong> {action.event}
</ActionType>
);
};
Expand Down

0 comments on commit d3ca860

Please sign in to comment.