diff --git a/lib/blocs/create_manifest/create_manifest_cubit.dart b/lib/blocs/create_manifest/create_manifest_cubit.dart index 23b7c9f8cb..2ec159f197 100644 --- a/lib/blocs/create_manifest/create_manifest_cubit.dart +++ b/lib/blocs/create_manifest/create_manifest_cubit.dart @@ -135,6 +135,11 @@ class CreateManifestCubit extends Cubit { } Future checkForConflicts(String name) async { + /// Prevent multiple checks from being triggered + if (state is! CreateManifestFolderLoadSuccess) { + return; + } + final parentFolder = (state as CreateManifestFolderLoadSuccess).viewingFolder.folder; @@ -180,6 +185,8 @@ class CreateManifestCubit extends Cubit { emit(CreateManifestPreparingManifest(parentFolder: parentFolder)); await prepareManifestTx(manifestName: name); + + logger.d('No conflicts found'); } Future prepareManifestTx({