Skip to content

Commit

Permalink
Cast actions array to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jan 16, 2023
1 parent dff765b commit 5b06a2d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function ScreenRoot() {

return {
variations: __experimentalGetCurrentThemeGlobalStylesVariations(),
canEditCSS: globalStyles?._links?.[ 'wp:action-edit-css' ] ?? false,
canEditCSS:
!! globalStyles?._links?.[ 'wp:action-edit-css' ] ?? false,
};
}, [] );

Expand Down

0 comments on commit 5b06a2d

Please sign in to comment.