Skip to content

Commit

Permalink
fix: Action Item Tab should no longer crash when component no longer …
Browse files Browse the repository at this point in the history
…exists.

Fixes #66
  • Loading branch information
Tethik committed Nov 13, 2023
1 parent 1f07179 commit 1b94298
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/components/model/panels/left/ActionItemList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ function ComponentActionItem({
}) {
const component = useComponent(componentId);

/**
* Fix for the case where a component was just deleted.
*/
if (!component) return null;

return (
<Box sx={{ paddingBottom: "10px" }}>
<CollapsePaper
Expand Down

0 comments on commit 1b94298

Please sign in to comment.