Skip to content

Commit

Permalink
fix: json encode properties for taxonomy edit
Browse files Browse the repository at this point in the history
  • Loading branch information
IsharaEkanayaka committed Dec 27, 2024
1 parent d35284e commit dc38a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/backend/taxonomy/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('title', __('Edit Taxonomy'))

@section('content')
<div x-data="{ properties: {{ $taxonomy->properties}}, is_editable: {{ $taxonomy->terms()->count() > 0 ? '0' : '1' }} }">
<div x-data="{ properties: {{ json_encode($taxonomy->properties)}}, is_editable: {{ $taxonomy->terms()->count() > 0 ? '0' : '1' }} }">
{!! Form::model($taxonomy, [
'url' => route('dashboard.taxonomy.update', $taxonomy->id),
'method' => 'PUT',
Expand Down

0 comments on commit dc38a5d

Please sign in to comment.