Skip to content

Commit 9c3a27b

Browse files
authored
Always provide a default width to prevent console error
1 parent 64a466e commit 9c3a27b

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
@@ -16,7 +16,7 @@ public function toVue(): array
1616
{
1717
return [
1818
'height' => $this->getHeight(),
19-
'width' => $this->getWidth(),
19+
'width' => $this->getWidth() ?? '100%',
2020
'type' => $this->getType(),
2121
'options' => $this->getOptions(),
2222
'series' => json_decode($this->getSeries()),

0 commit comments

Comments
 (0)