Skip to content

Commit

Permalink
[#51] Fix incorrect comparing
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan authored and blcham committed Nov 1, 2024
1 parent adb54a5 commit ca354d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/treebeard/ScriptsTree.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ScriptsTree extends React.Component {
}

render() {
if (this.state.data === []) {
if (this.state.data.length === 0) {
return <Loading size={"large"} style={{ margin: "auto", position: "absolute", inset: "0px", zIndex: 9000 }} />;
} else {
return (
Expand Down

0 comments on commit ca354d5

Please sign in to comment.