Skip to content

Commit 68cec28

Browse files
Fix the no snapshot message
1 parent e1c2cb7 commit 68cec28

File tree

1 file changed

+1
-1
lines changed
  • app/javascript/components/vm-snapshot-tree-select

1 file changed

+1
-1
lines changed

app/javascript/components/vm-snapshot-tree-select/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const VMSnapshotTreeSelect = ({
5252
<div className="snapshot-tree-title">
5353
{__('Available Snapshots')}
5454
</div>
55-
{tree.nodes && tree.nodes.length > 1
55+
{tree.tree_nodes[0] && tree.tree_nodes[0].nodes.length > 0
5656
? <SnapshotTree nodes={tree.tree_nodes} setCurrentSnapshot={setCurrentSnapshot} />
5757
: (
5858
<div className="no-snapshots-message">

0 commit comments

Comments
 (0)