diff --git a/src/App/Http/Controllers/RemoteCustomFieldController.php b/src/App/Http/Controllers/RemoteCustomFieldController.php index e54e952..816fce8 100644 --- a/src/App/Http/Controllers/RemoteCustomFieldController.php +++ b/src/App/Http/Controllers/RemoteCustomFieldController.php @@ -106,8 +106,7 @@ public function resolve(RemoteType $remoteType): JsonResponse $data = $remoteType->getRemoteData(); $data = $remoteType->data_path ? Arr::get($data, $remoteType->data_path) : $data; - - $transformed = $this->transform($data, json_decode($remoteType->mappings, true)); + $transformed = $this->transform($data, $remoteType->mappings); return response()->json($transformed); }