Skip to content

Commit 6b5eb4f

Browse files
committed
refactor coalescing operator into conditional
1 parent 0273263 commit 6b5eb4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/crud/fields/repeatable.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ function newRepeatableElement(container, field_group, values, position) {
281281
// this is different than using prefix in fields like text, number etc. In those cases the prefix is used
282282
// only for displaying purposes, when is set as `data-value-prefix` is when it is part of the value
283283
// like image field.
284-
let prefix = $(this).data('value-prefix') ?? '';
284+
let prefix = $(this).data('value-prefix') ? $(this).data('value-prefix') : '';
285285
let value = values[$(this).data('repeatable-input-name')];
286286
287287
// only apply the prefix when the value is string and not empty.

0 commit comments

Comments
 (0)