Skip to content

Commit

Permalink
Widget model setting convert always object
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Dec 20, 2023
1 parent 154ed74 commit 61b1757
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Models/Common/Widget.php
Expand Up @@ -77,12 +77,11 @@ public function getAliasAttribute()
*/
public function getSettingsAttribute($value)
{
$settings = ! empty($value) ? json_decode($value) : (object) [];
$settings = ! empty($value) ? (object) json_decode($value) : (object) [];

$settings->raw_width = false;

if (isset($settings->width)) {

$raw_width = $settings->width;
$width = $this->getWidthAttribute($settings->width);

Expand Down

0 comments on commit 61b1757

Please sign in to comment.