@amyriounis on WordPress.org and Slack
Posted a reply to JS: get current post format in Gutenberg edit screen to display/hide metafields, on the site WordPress.org Forums:You can use wp.data.select( 'core/editor' ).getCurrentPostType(); to get the current post format. Check the doc…