Update lib/services/collection_service.dart
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
05bdd281b6
commit
2699242fdf
1 changed files with 2 additions and 1 deletions
|
|
@ -172,7 +172,8 @@ class CollectionService {
|
||||||
}) async {
|
}) async {
|
||||||
await supabase.from('collections').update({
|
await supabase.from('collections').update({
|
||||||
'name': name,
|
'name': name,
|
||||||
'description': description,
|
if (description != null && description.isNotEmpty)
|
||||||
|
'description': description,
|
||||||
}).eq('id', collectionId);
|
}).eq('id', collectionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue