mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 01:15:44 -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,
|
stackTrace: stackTrace,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
final scans = state.scans..remove(file);
|
final scans = state.scans.where((f) => f != file).toList();
|
||||||
emit(
|
emit(
|
||||||
scans.isEmpty
|
scans.isEmpty
|
||||||
? const DocumentScannerState()
|
? const DocumentScannerState()
|
||||||
|
|||||||
Reference in New Issue
Block a user