mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: refresh UI after deleting all sorts (#2573)
* chore: disable snapshot for now * chore: notify the fronted to refresh after deleting all the sorts
This commit is contained in:
@ -80,7 +80,7 @@ class SortBackendService {
|
||||
required String sortId,
|
||||
required FieldType fieldType,
|
||||
}) {
|
||||
final deleteFilterPayload = DeleteSortPayloadPB.create()
|
||||
final deleteSortPayload = DeleteSortPayloadPB.create()
|
||||
..fieldId = fieldId
|
||||
..sortId = sortId
|
||||
..viewId = viewId
|
||||
@ -88,7 +88,7 @@ class SortBackendService {
|
||||
|
||||
final payload = DatabaseSettingChangesetPB.create()
|
||||
..viewId = viewId
|
||||
..deleteSort = deleteFilterPayload;
|
||||
..deleteSort = deleteSortPayload;
|
||||
|
||||
return DatabaseEventUpdateDatabaseSetting(payload).send().then((result) {
|
||||
return result.fold(
|
||||
|
Reference in New Issue
Block a user