Merge pull request #1156 from alixander/fix-watch-mode

fix watch mode
This commit is contained in:
Alexander Wang 2023-04-08 12:10:56 -07:00 committed by GitHub
commit 8425c09768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -373,7 +373,7 @@ func compile(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, rende
}
var out []byte
if len(boards) > 0 {
out := boards[0]
out = boards[0]
if animateInterval > 0 {
out, err = d2animate.Wrap(diagram, boards, renderOpts, int(animateInterval))
if err != nil {