From d547745a9b8f2a44231708ea4dc1a64d53150b98 Mon Sep 17 00:00:00 2001 From: Mati Date: Thu, 2 Nov 2023 12:38:06 -0300 Subject: [PATCH] feat(preview cubit): emit preview unavailable for non-file entities PE-4930 --- lib/blocs/fs_entry_preview/fs_entry_preview_cubit.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/blocs/fs_entry_preview/fs_entry_preview_cubit.dart b/lib/blocs/fs_entry_preview/fs_entry_preview_cubit.dart index e614a8bc10..b81c3556dd 100644 --- a/lib/blocs/fs_entry_preview/fs_entry_preview_cubit.dart +++ b/lib/blocs/fs_entry_preview/fs_entry_preview_cubit.dart @@ -206,6 +206,8 @@ class FsEntryPreviewCubit extends Cubit { } } }); + } else { + emit(FsEntryPreviewUnavailable()); } } else { emit(FsEntryPreviewUnavailable());