Skip to content

Commit 5f735bf

Browse files
authored
Update src/plugins/global-settings/index.js
1 parent 39fac01 commit 5f735bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/global-settings/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ addAction( 'stackable.global-settings.toggle-sidebar', 'toggle', () => {
4545

4646
const GlobalSettings = () => {
4747
const [ userCanManageOptions, setUserCanManageOptions ] = useState( false )
48-
const id = useSelect( select => select( 'core' ).getCurrentUser().id )
48+
const id = useSelect( select => select( 'core' ).getCurrentUser()?.id )
4949

5050
useEffect( () => {
5151
const checkCapabilities = async () => {

0 commit comments

Comments
 (0)