Fixed: Dont parse meta when loadValue is not numeric
This commit is contained in:
parent
b9283a46c4
commit
fa6a328860
|
@ -80,7 +80,7 @@ class Responsiveimage extends FormWidgetBase
|
||||||
$this->vars['minWidth'] = $this->minWidth ?: '0';
|
$this->vars['minWidth'] = $this->minWidth ?: '0';
|
||||||
$this->vars['name'] = $this->formField->getName();
|
$this->vars['name'] = $this->formField->getName();
|
||||||
$this->vars['value'] = is_numeric($this->getLoadValue()) ? $this->getLoadValue() : 'null';
|
$this->vars['value'] = is_numeric($this->getLoadValue()) ? $this->getLoadValue() : 'null';
|
||||||
$this->vars['meta'] = $this->getLoadValue()
|
$this->vars['meta'] = is_numeric($this->getLoadValue())
|
||||||
? $this->vueParam(app(UploadStorage::class)->getFileData($this->getLoadValue()))
|
? $this->vueParam(app(UploadStorage::class)->getFileData($this->getLoadValue()))
|
||||||
: 'null';
|
: 'null';
|
||||||
$this->vars['model'] = $this->model;
|
$this->vars['model'] = $this->model;
|
||||||
|
|
Loading…
Reference in New Issue