Update refresh_item_container.js
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled

This commit is contained in:
jelveh
2025-09-17 16:12:35 -07:00
parent e4ada292f1
commit abc0d7b16c
@@ -108,7 +108,7 @@ const refresh_item_container = function(el_item_container, options){
$(el_item_container).find('.item').removeItems()
// get items
puter.fs.readdir({path: container_path, consistency: options.consistency }).then((fsentries)=>{
puter.fs.readdir({path: container_path, consistency: options.consistency ?? 'eventual'}).then((fsentries)=>{
// Check if the same folder is still loading since el_item_container's
// data-path might have changed by other operations while waiting for the response to this `readdir`.
if($(el_item_container).attr('data-path') !== container_path)