Skip to content

Commit

Permalink
Merge pull request #1507 from alixander/fix-watch
Browse files Browse the repository at this point in the history
fix watch
  • Loading branch information
alixander authored Jul 29, 2023
2 parents ccb7bc3 + 06e145a commit 83bb937
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions d2target/d2target.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 83bb937

Please sign in to comment.