fix watch mode

This commit is contained in:
Alexander Wang 2023-04-08 11:30:41 -07:00
parent 2ab19ee0f2
commit b3b97d1a46
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

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 {