From ca354d5ac26fb6d901592299884e6681537f97db Mon Sep 17 00:00:00 2001 From: Daniil Palagin Date: Thu, 29 Aug 2024 19:34:33 +0200 Subject: [PATCH] [#51] Fix incorrect comparing --- src/components/treebeard/ScriptsTree.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/treebeard/ScriptsTree.jsx b/src/components/treebeard/ScriptsTree.jsx index 9c2c78c..f0b0910 100644 --- a/src/components/treebeard/ScriptsTree.jsx +++ b/src/components/treebeard/ScriptsTree.jsx @@ -97,7 +97,7 @@ class ScriptsTree extends React.Component { } render() { - if (this.state.data === []) { + if (this.state.data.length === 0) { return ; } else { return (