Skip to content

Commit

Permalink
Update relationship.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
emptynick committed Oct 14, 2021
1 parent 5a05987 commit ef087f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/formfields/relationship.blade.php
Expand Up @@ -170,7 +170,7 @@ class="form-control select2-ajax @if(isset($options->taggable) && $options->tagg
@php
$selected_keys = [];

if (isset($dataTypeContent)) {
if (!is_null($dataTypeContent->getKey())) {
$selected_keys = $dataTypeContent->belongsToMany(
$options->model,
$options->pivot_table,
Expand Down

0 comments on commit ef087f7

Please sign in to comment.