fix GetBoard when path contains index
This commit is contained in:
parent
78b6139c12
commit
ba2aa2304c
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ func (d *Diagram) GetBoard(boardPath []string) *Diagram {
|
||||||
|
|
||||||
head := boardPath[0]
|
head := boardPath[0]
|
||||||
|
|
||||||
if head == "index" {
|
if len(boardPath) == 1 && d.Name == head {
|
||||||
return d
|
return d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue