From 9c3a27b6062e72b466c958ccb9dc2fe37435bdd5 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Sat, 30 Mar 2024 19:27:12 -0400 Subject: [PATCH] Always provide a default width to prevent console error --- src/Traits/Formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/Formatter.php b/src/Traits/Formatter.php index 62822d4..00b0815 100644 --- a/src/Traits/Formatter.php +++ b/src/Traits/Formatter.php @@ -16,7 +16,7 @@ public function toVue(): array { return [ 'height' => $this->getHeight(), - 'width' => $this->getWidth(), + 'width' => $this->getWidth() ?? '100%', 'type' => $this->getType(), 'options' => $this->getOptions(), 'series' => json_decode($this->getSeries()),