diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/PrepublishingTagsViewModel.kt b/WordPress/src/main/java/org/wordpress/android/ui/posts/PrepublishingTagsViewModel.kt index 3a36505d11a0..adf3f94a28dc 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/posts/PrepublishingTagsViewModel.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/PrepublishingTagsViewModel.kt @@ -39,10 +39,11 @@ class PrepublishingTagsViewModel @Inject constructor( val toolbarTitleUiState: LiveData = _toolbarTitleUiState fun start(editPostRepository: EditPostRepository) { + this.editPostRepository = editPostRepository + if (isStarted) return isStarted = true - this.editPostRepository = editPostRepository setToolbarTitleUiState() }