fix: mobx warnings and react render phase set state error

This commit is contained in:
Aman Harwara
2022-10-20 20:24:56 +05:30
parent 4f3b258363
commit 76f23e13ec
3 changed files with 7 additions and 6 deletions

View File

@@ -192,7 +192,7 @@ export class SelectedItemsController
private replaceSelection = (item: ListableContentItem): void => {
this.deselectAll()
this.setSelectedUuids(this.selectedUuids.add(item.uuid))
runInAction(() => this.setSelectedUuids(this.selectedUuids.add(item.uuid)))
this.lastSelectedItem = item
}