fix watch

This commit is contained in:
Alexander Wang 2023-07-29 15:08:53 -07:00
parent ccb7bc37d0
commit 06e145ab12
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -85,6 +85,10 @@ func (d *Diagram) GetBoard(boardPath string) *Diagram {
}
func (d *Diagram) getBoard(boardPath []string) *Diagram {
if len(boardPath) == 0 {
return d
}
head := boardPath[0]
if head == "index" {