Skip to content

Commit

Permalink
Fix setting of api nonce and root
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeyGuyDylan committed Jan 10, 2025
1 parent a549dfb commit 66c5fe5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const AdminPage: React.FC< AdminPageProps > = ( {
header,
} ) => {
useEffect( () => {
restApi.setRoot( apiRoot );
restApi.setNonce( apiNonce );
restApi.setApiRoot( apiRoot );
restApi.setApiNonce( apiNonce );
}, [ apiRoot, apiNonce ] );

const rootClassName = clsx( styles[ 'admin-page' ], {
Expand Down

0 comments on commit 66c5fe5

Please sign in to comment.