Bläddra i källkod

remove null check from selectedFiles.files on move to collection

ashilkn 2 år sedan
förälder
incheckning
91a64cf154
1 ändrade filer med 1 tillägg och 1 borttagningar
  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();
     await dialog.show();
     try {
     try {
       final int fromCollectionID =
       final int fromCollectionID =
-          widget.selectedFiles.files?.first?.collectionID;
+          widget.selectedFiles.files.first?.collectionID;
       await CollectionsService.instance.move(
       await CollectionsService.instance.move(
         toCollectionID,
         toCollectionID,
         fromCollectionID,
         fromCollectionID,