react-os-shell 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -643,7 +643,7 @@ function StatusBadge({ status }) {
643
643
  }
644
644
 
645
645
  // src/version.ts
646
- var VERSION = "0.1.12" ;
646
+ var VERSION = "0.1.13" ;
647
647
  var APP_VERSION = VERSION;
648
648
 
649
649
  // src/changelog.ts
@@ -1016,8 +1016,8 @@ function Desktop({ profile }) {
1016
1016
  window.removeEventListener("pointerup", up);
1017
1017
  };
1018
1018
  }, [dragging, snapEnabled, favDocs, folders, desktopItems]);
1019
- const favDocsKey = JSON.stringify(favDocs.map((d) => d.entityId));
1020
- const foldersKey = JSON.stringify(folders.map((f) => f.id));
1019
+ const favDocsKey = JSON.stringify(favDocs.map((d) => `${d.entityId}:${d.x ?? ""}:${d.y ?? ""}:${d.folderId ?? ""}`));
1020
+ const foldersKey = JSON.stringify(folders.map((f) => `${f.id}:${f.x ?? ""}:${f.y ?? ""}`));
1021
1021
  useEffect(() => {
1022
1022
  setLocalPositions({});
1023
1023
  }, [favDocsKey, foldersKey]);