diff --git a/app/Models/Forms/Form.php b/app/Models/Forms/Form.php index d3a61d5..11b61c9 100644 --- a/app/Models/Forms/Form.php +++ b/app/Models/Forms/Form.php @@ -155,8 +155,8 @@ class Form extends Model public function setTagsAttribute($value) { - if ($value == null || $value == '') { - $value = '[]'; + if ($value == '') { + $value = null; } $this->attributes['tags'] = json_encode($value); } diff --git a/resources/js/components/forms/components/VSelect.vue b/resources/js/components/forms/components/VSelect.vue index c95fba9..a93066d 100644 --- a/resources/js/components/forms/components/VSelect.vue +++ b/resources/js/components/forms/components/VSelect.vue @@ -61,14 +61,14 @@ -

- No option available. +

+ {{ (allowCreation ? 'Type something to add an option': 'No option available') }}.

  • - Create {{searchTerm}} + > + Create {{ searchTerm }}