mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-05 23:15:42 -06:00
Merge pull request #416 from MofX/fix_delete_single_scan
fix removing single file from scanned pages
This commit is contained in:
@@ -64,7 +64,7 @@ class DocumentScannerCubit extends Cubit<DocumentScannerState> {
|
||||
stackTrace: stackTrace,
|
||||
);
|
||||
}
|
||||
final scans = state.scans..remove(file);
|
||||
final scans = state.scans.where((f) => f != file).toList();
|
||||
emit(
|
||||
scans.isEmpty
|
||||
? const DocumentScannerState()
|
||||
|
||||
Reference in New Issue
Block a user