Skip to content

Commit

Permalink
Merge pull request #9 from stevebauman/patch-1
Browse files Browse the repository at this point in the history
Always provide a default width to prevent console error
  • Loading branch information
denisdulici authored Apr 1, 2024
2 parents 5911841 + 9c3a27b commit 2f3b4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function toVue(): array
return [
'id' => $this->getId(),
'height' => $this->getHeight(),
'width' => $this->getWidth(),
'width' => $this->getWidth() ?? '100%',
'type' => $this->getType(),
'options' => json_decode($this->getOptions(), true),
'series' => $this->getSeries(),
Expand Down

0 comments on commit 2f3b4a7

Please sign in to comment.