Skip to content

Commit 9d80268

Browse files
committed
PRT-696 Update container contents after deleting
Not sure how this has not been a more pressing bug, but if you delete the contents of a location in grid or image view the location was not updating, the contents just stayed there. This change refreshes the container to ensure that the UI keeps to date with the state.
1 parent 092c070 commit 9d80268

File tree

1 file changed

+6
-0
lines changed
  • src/main/webapp/ui/src/stores/models

1 file changed

+6
-0
lines changed

src/main/webapp/ui/src/stores/models/Search.js

+6
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,12 @@ export default class Search implements SearchInterface {
509509
// e.g. sample's quantity may have changed
510510
this.refetchActiveResult(deletedGlobalIds);
511511
}
512+
513+
if (searchStore.activeResult instanceof ContainerModel) {
514+
const cont = searchStore.activeResult;
515+
if (cont.state === "preview") await cont.fetchAdditionalInfo();
516+
cont.refreshAssociatedSearch();
517+
}
512518
}
513519

514520
offerToDeleteNowEmptySamples(deletedRecords: Array<InventoryRecord>) {

0 commit comments

Comments
 (0)