Skip to content

Commit

Permalink
Keep User permissions collapsed by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Oct 18, 2024
1 parent 5704b76 commit bc39ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/settings/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ export const useUserPermissionsPreferences = () => {
const isOpen = useSelect( ( select ) => {
const { get } = select( 'core/preferences' ) || {};
if ( ! get ) {
return true;
return false;
}

const open = get( 'classifai/settings', 'user-permissions-panel-open' );
if ( open === undefined ) {
return true;
return false;
}
return open;
}, [] );
Expand Down

0 comments on commit bc39ea0

Please sign in to comment.