Skip to content

Commit 66324dc

Browse files
committed
Fixed block saving
1 parent 7998ecf commit 66324dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/taptodo/Block.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ public function nameBlock($name){
8686
$this->name = $name;
8787
}
8888
public function getCommands(){
89-
return $this->cmd;
89+
$out = [];
90+
foreach($this->cmd as $cmd) $out[] = $cmd[0];
91+
return $out;
9092
}
9193
public function getName(){
9294
return $this->name;

0 commit comments

Comments
 (0)