Skip to content

Commit

Permalink
fix null check
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Aug 8, 2024
1 parent 8461ba8 commit bf543a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/components/NodeChangesModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const NodeChangesModal: FC = () => {
const changes = useHistoricalNodeChangeInfo(nodeId!);
const setViewingNodeChanges = useSetRecoilState(viewingNodeChangesState);

if (changes.changed === false) {
if (changes == null || changes.changed === false) {
return null;
}

Expand Down

0 comments on commit bf543a5

Please sign in to comment.