From 99eaec768ee58666fc66dddd1b7c0bdb28b3db71 Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 4 Nov 2021 09:06:47 +0100 Subject: [PATCH] Add label field controller It is necessary to have the label parameter to not throw an error on typescript as it is necessary in cases like this: ``` {({ referenceRecord, ...props }) => { return ( ); }} ``` --- .../ra-core/src/controller/field/ReferenceFieldController.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ra-core/src/controller/field/ReferenceFieldController.tsx b/packages/ra-core/src/controller/field/ReferenceFieldController.tsx index 91542af4ab9..25a0d7ab2af 100644 --- a/packages/ra-core/src/controller/field/ReferenceFieldController.tsx +++ b/packages/ra-core/src/controller/field/ReferenceFieldController.tsx @@ -18,6 +18,7 @@ export interface ReferenceFieldControllerProps { resource: string; source: string; link?: string | boolean | LinkToFunctionType; + label?: string; } /**