Skip to content

fix(files): prevent fatal TypeError crash on unauthenticated cloud ac…#79

Open
vibhutomer wants to merge 1 commit into
seetadev:mainfrom
vibhutomer:fix/fatal-cloud-auth-crash
Open

fix(files): prevent fatal TypeError crash on unauthenticated cloud ac…#79
vibhutomer wants to merge 1 commit into
seetadev:mainfrom
vibhutomer:fix/fatal-cloud-auth-crash

Conversation

@vibhutomer
Copy link
Copy Markdown

Fix: Prevent Fatal App Crash on Unauthenticated Cloud Access

Related Issue

Description of Changes

  • Fixed a critical oversight in the temp() function inside Files.tsx.
  • Previously, if a user who wasn't logged in clicked the Cloud files icon, the app would alert them but continue executing the function. This resulted in Object.keys(undefined), throwing a fatal TypeError that crashed the entire React DOM.
  • Added setListFiles(false) and a return; statement inside the !user condition block.

Impact

  • Crash Prevention: The app no longer "White Screens" when an unauthenticated user tries to interact with cloud features.
  • Data Safety: Prevents users from losing unsaved spreadsheet data due to an unexpected UI crash.
  • Graceful Failure: The operation is now safely aborted, and the modal state is reset properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fatal React Crash (TypeError) on Unauthenticated Cloud Access

1 participant