Skip to content

Commit

Permalink
Merge pull request #21032 from wordpress-mobile/gutenberg/fix-crashin…
Browse files Browse the repository at this point in the history
…g-on-start

[Gutenberg] Disable calling the `themes` endpoint
  • Loading branch information
Gerardo Pacheco authored Jul 8, 2024
2 parents 4f5ea84 + 9ea4bcf commit 80956df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3891,11 +3891,8 @@ class EditPostActivity : LocaleAwareActivity(), EditorFragmentActivity, EditorIm
}

private fun refreshEditorTheme() {
val shouldLoadBlockEditorThemeData = siteModel.isWPCom || siteModel.isWPComAtomic || isJetpackSsoEnabled
if (shouldLoadBlockEditorThemeData) {
val payload = FetchEditorThemePayload(siteModel, globalStyleSupportFeatureConfig.isEnabled())
dispatcher.dispatch(EditorThemeActionBuilder.newFetchEditorThemeAction(payload))
}
val payload = FetchEditorThemePayload(siteModel, globalStyleSupportFeatureConfig.isEnabled())
dispatcher.dispatch(EditorThemeActionBuilder.newFetchEditorThemeAction(payload))
}

@Suppress("unused")
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ext {
automatticAboutVersion = '1.4.0'
automatticRestVersion = '1.0.8'
automatticTracksVersion = '5.1.0'
gutenbergMobileVersion = 'v1.120.1'
gutenbergMobileVersion = 'v1.121.0-alpha1'
wordPressAztecVersion = 'v2.1.3'
wordPressFluxCVersion = 'trunk-79f2bc35285748c715e00f2a6648ed6831632178'
wordPressLoginVersion = '1.16.0'
Expand Down

0 comments on commit 80956df

Please sign in to comment.