codemirror insert

This commit is contained in:
2024-09-07 15:31:56 +03:00
parent 0cd4e08716
commit 02f8f5970a
8 changed files with 66 additions and 8 deletions
+3
View File
@@ -16,8 +16,11 @@ class InputFormatter
public function fill(string $schemaName, RecordData $input): RecordData
{
$schema = $this->channelService->getSchema($schemaName)->get();
$data = $schema->fields->reduce(fn(array $carry, FieldInterface $field) => $field->format($input->toArray(), $carry), []);
return new RecordData($data);
}