@applica-software-guru/react-admin 1.5.339 → 1.5.340
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1 -1
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-lists/Empty.tsx +1 -1
package/package.json
CHANGED
|
@@ -106,7 +106,7 @@ function Empty({
|
|
|
106
106
|
...props
|
|
107
107
|
}: EmptyProps): JSX.Element {
|
|
108
108
|
const { hasCreate } = useResourceDefinition(props);
|
|
109
|
-
const canCreate = _hasCreate
|
|
109
|
+
const canCreate = _hasCreate !== undefined ? _hasCreate : hasCreate;
|
|
110
110
|
const resource = useResourceContext(props);
|
|
111
111
|
|
|
112
112
|
const translate = useTranslate();
|