Skip to content

Commit 63c7dc1

Browse files
Update App.js
1 parent d0df706 commit 63c7dc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin-js/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ const AiohttpAppBar = () => (
445445
);
446446

447447
const App = (props) => {
448-
const {aiohttpState, ...adminProps} = props;
448+
const {aiohttpState, key, ...adminProps} = props;
449449
STATE = aiohttpState;
450450
const [loaded, setLoaded] = useState(STATE["js_module"] === null);
451451
if (!loaded) {
@@ -460,7 +460,7 @@ const App = (props) => {
460460
}
461461

462462
return (
463-
<Admin {...adminProps} dataProvider={dataProvider} authProvider={authProvider} title={STATE["view"]["name"]}
463+
<Admin key={key} {...adminProps} dataProvider={dataProvider} authProvider={authProvider} title={STATE["view"]["name"]}
464464
layout={(props) => <Layout {...props} appBar={AiohttpAppBar} />} disableTelemetry requireAuth>
465465
{permissions => createResources(STATE["resources"], permissions)}
466466
</Admin>

0 commit comments

Comments
 (0)