summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Cli/Commands/TreeEdit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Cli/Commands/TreeEdit.php b/app/Cli/Commands/TreeEdit.php
index 8fdb6f1855..e2d62ae326 100644
--- a/app/Cli/Commands/TreeEdit.php
+++ b/app/Cli/Commands/TreeEdit.php
@@ -73,7 +73,7 @@ final class TreeEdit extends AbstractCommand
return Command::INVALID;
}
- $tree = $this->tree_service->all()->get('name');
+ $tree = $this->tree_service->all()->get($name);
if ($create) {
if ($tree instanceof Tree) {