修复商品常见品牌没有报错

This commit is contained in:
pushuo 2022-08-12 11:53:44 +08:00
parent 75d6b3ed34
commit 78a932ea7a
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@
<x-admin-form-input name="position" title="排序" :value="old('position', $product->position ?? '0')" />
<x-admin::form.row title="品牌">
<input type="text" value="{{ $product->brand->name }}" id="brand-autocomplete" class="form-control wp-400 " />
<input type="text" value="{{ $product->brand->name ?? '' }}" id="brand-autocomplete" class="form-control wp-400 " />
<input type="hidden" name="brand_id" value="{{ old('brand_id', $product->brand_id ?? '') }}" />
</x-admin::form.row>