Skip to content

Commit 8274513

Browse files
committed
Fix regression regarding disableAuthentication in EditBase and ShowBase
1 parent 4082ef9 commit 8274513

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/ra-core/src/controller/edit/EditBase.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import { useIsAuthPending } from '../../auth';
4242
*/
4343
export const EditBase = <RecordType extends RaRecord = any, ErrorType = Error>({
4444
children,
45-
disableAuthentication,
4645
loading,
4746
offline,
4847
render,
@@ -65,7 +64,7 @@ export const EditBase = <RecordType extends RaRecord = any, ErrorType = Error>({
6564

6665
const shouldRenderLoading =
6766
isAuthPending &&
68-
!disableAuthentication &&
67+
!props.disableAuthentication &&
6968
loading !== false &&
7069
loading !== undefined;
7170

packages/ra-core/src/controller/show/ShowBase.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import { useIsAuthPending } from '../../auth';
4141
*/
4242
export const ShowBase = <RecordType extends RaRecord = any>({
4343
children,
44-
disableAuthentication,
4544
loading,
4645
offline,
4746
render,
@@ -64,7 +63,7 @@ export const ShowBase = <RecordType extends RaRecord = any>({
6463

6564
const shouldRenderLoading =
6665
isAuthPending &&
67-
!disableAuthentication &&
66+
!props.disableAuthentication &&
6867
loading !== false &&
6968
loading !== undefined;
7069

0 commit comments

Comments
 (0)