Selaa lähdekoodia

remove null check from selectedFiles.files on move to collection

ashilkn 2 vuotta sitten
vanhempi
commit
91a64cf154
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/ui/create_collection_page.dart

+ 1 - 1
lib/ui/create_collection_page.dart

@@ -291,7 +291,7 @@ class _CreateCollectionPageState extends State<CreateCollectionPage> {
     await dialog.show();
     try {
       final int fromCollectionID =
-          widget.selectedFiles.files?.first?.collectionID;
+          widget.selectedFiles.files.first?.collectionID;
       await CollectionsService.instance.move(
         toCollectionID,
         fromCollectionID,