mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Comment out unsupported code
This commit is contained in:
parent
7c290a1825
commit
94d042dfa0
1 changed files with 6 additions and 7 deletions
|
@ -14,7 +14,6 @@ import 'package:nc_photos/entity/collection_item/new_item.dart';
|
|||
import 'package:nc_photos/entity/collection_item/util.dart';
|
||||
import 'package:nc_photos/entity/file_descriptor.dart';
|
||||
import 'package:nc_photos/entity/nc_album.dart';
|
||||
import 'package:nc_photos/object_extension.dart';
|
||||
import 'package:nc_photos/use_case/find_file_descriptor.dart';
|
||||
import 'package:nc_photos/use_case/nc_album/add_file_to_nc_album.dart';
|
||||
import 'package:nc_photos/use_case/nc_album/edit_nc_album.dart';
|
||||
|
@ -98,16 +97,16 @@ class CollectionNcAlbumAdapter
|
|||
_log.warning(
|
||||
"[edit] Nextcloud album does not support editing item or sort");
|
||||
}
|
||||
final newItems = items?.run((items) => items
|
||||
.map((e) => e is CollectionFileItem ? e.file : null)
|
||||
.whereNotNull()
|
||||
.toList());
|
||||
// final newItems = items?.run((items) => items
|
||||
// .map((e) => e is CollectionFileItem ? e.file : null)
|
||||
// .whereNotNull()
|
||||
// .toList());
|
||||
final newAlbum = await EditNcAlbum(_c)(
|
||||
account,
|
||||
_provider.album,
|
||||
name: name,
|
||||
items: newItems,
|
||||
itemSort: itemSort,
|
||||
// items: newItems,
|
||||
// itemSort: itemSort,
|
||||
);
|
||||
return collection.copyWith(
|
||||
name: name,
|
||||
|
|
Loading…
Reference in a new issue