Skip to content

Commit 2f3b4a7

Browse files
authored
Merge pull request #9 from stevebauman/patch-1
Always provide a default width to prevent console error
2 parents 5911841 + 9c3a27b commit 2f3b4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function toVue(): array
1717
return [
1818
'id' => $this->getId(),
1919
'height' => $this->getHeight(),
20-
'width' => $this->getWidth(),
20+
'width' => $this->getWidth() ?? '100%',
2121
'type' => $this->getType(),
2222
'options' => json_decode($this->getOptions(), true),
2323
'series' => $this->getSeries(),

0 commit comments

Comments
 (0)