mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-12 23:00:06 +00:00
renderItem() showed the shortcut badge whenever file.is_shortcut !== 0. Directory listings return is_shortcut as 0, but the puter.fs.upload() result used to incrementally render newly-created items omits the field, so undefined !== 0 was true and every new file got a phantom shortcut badge. Normalize is_shortcut to 0/1 before using it.