Skip to content

Commit 496be9c

Browse files
Try removing adminProps
1 parent 3ed4e86 commit 496be9c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

admin-js/src/App.js

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

447447
const App = (props) => {
448-
const {aiohttpState, key, ...adminProps} = props;
449-
STATE = aiohttpState;
448+
STATE = props["aiohttpState"];
450449
const [loaded, setLoaded] = useState(STATE["js_module"] === null);
451450
if (!loaded) {
452451
// The inline comment skips the webpack import() and allows us to use the native
@@ -460,7 +459,7 @@ const App = (props) => {
460459
}
461460

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

0 commit comments

Comments
 (0)