Skip to content

Commit 04874c3

Browse files
fix(SystemDetail): fix conditional rendering
1 parent de3b857 commit 04874c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SmartComponents/SystemDetail/SystemDetail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const SystemDetail = ({ isInventoryApp, inventoryId, shouldRefresh }) => {
2121

2222
const handleNoSystemData = () => {
2323
isInventoryApp && setTabsHidden((prevTabsHidden) => !prevTabsHidden);
24-
return (isInventoryApp && null) || <NotConnected />;
24+
return isInventoryApp ? null : <NotConnected />;
2525
};
2626

2727
return (

0 commit comments

Comments
 (0)