Skip to content

Commit e6f19b3

Browse files
committed
fix
1 parent d2f72d3 commit e6f19b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Fields/Repeater.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ public function getOldValue(Request $request): array
106106
return array_values((array) parent::getOldValue($request));
107107
}
108108

109+
/**
110+
* {@inheritdoc}
111+
*/
112+
public function resolveValue(Request $request, Model $model): array
113+
{
114+
$value = (array) parent::resolveValue($request, $model);
115+
116+
$value = array_intersect_key($value, array_unique(array_column($value, '_key')));
117+
118+
return array_values($value);
119+
}
120+
109121
/**
110122
* Handle the callback for the field resolution.
111123
*/

0 commit comments

Comments
 (0)