Skip to content

Commit cd4868b

Browse files
committed
Changes singularLabel to stop forcibly converting plural labels
1 parent cd435dd commit cd4868b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NovaInlineRelationship.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ protected function setMetaFromClass(array $item, $attrib, $value = null)
309309

310310
$item['meta'] = $class->jsonSerialize();
311311
// We are using Singular Label instead of name to display labels as compound name will be used in Vue
312-
$item['meta']['singularLabel'] = Str::title(Str::singular(str_replace('_', ' ', $item['label'] ?? $attrib)));
312+
$item['meta']['singularLabel'] = Str::title(str_replace('_', ' ', $item['label'] ?? $attrib));
313313

314314
$item['meta']['placeholder'] = 'Add ' . $item['meta']['singularLabel'];
315315

0 commit comments

Comments
 (0)