Hide archived/deleted clients

This commit is contained in:
Hillel Coren 2021-05-20 12:52:29 +03:00
parent 0b21c10142
commit af36fe0281
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ final editingContactReducer = combineReducers<ContactEntity>([
]); ]);
final selectedIdReducer = combineReducers<String>([ final selectedIdReducer = combineReducers<String>([
TypedReducer<String, ArchiveClientsSuccess>((completer, action) => ''),
TypedReducer<String, DeleteClientsSuccess>((completer, action) => ''),
TypedReducer<String, PreviewEntity>((selectedId, action) => TypedReducer<String, PreviewEntity>((selectedId, action) =>
action.entityType == EntityType.client ? action.entityId : selectedId), action.entityType == EntityType.client ? action.entityId : selectedId),
TypedReducer<String, ViewClient>((selectedId, action) { TypedReducer<String, ViewClient>((selectedId, action) {