Project-Pandora-Game / pandora

https://project-pandora.com
Other
11 stars 2 forks source link

Investigate that exporting a saved item collection can lead to an assertion failed #674

Open ClaudiaMia opened 7 months ago

ClaudiaMia commented 7 months ago
Error: Assertion failed
    at Assert (webpack://pandora-client-web/../pandora-common/src/utility.ts:68:8)
    at webpack://pandora-client-web/./src/components/exportImport/exportImportUtils.ts:22:2
    at webpack://pandora-client-web/./src/components/exportImport/exportDialog.tsx:44:55
Jomshir98 commented 7 months ago

Note: That specific assertion might not be needed if we trust that the code overall works. The problematic thing might be loss of keys set to undefined, causing the isEqual to fail. Simply removing that assertion might suffice.