Skip to content

Commit

Permalink
Use null instead of empty fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Oct 11, 2023
1 parent 0f67b43 commit 2ac7a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/software/PatternSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function PatternSelector() {
}, [patterns, client.software]);

// initial empty screen, the patterns are loaded very quickly, no need for any progress
if (!patterns) return <></>;
if (!patterns) return null;

let patternsData = convert(patterns, selected);

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/software/SoftwarePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { _ } from "~/i18n";
function Content({ status }) {
switch (status) {
case undefined:
return <></>;
return null;
case BUSY:
return (
<Center>
Expand Down

0 comments on commit 2ac7a3f

Please sign in to comment.