Skip to content

fix: avoid ops deep link initialization error#2501

Merged
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
Agoniedi:fix-ops-deeplink-tdz
May 19, 2026
Merged

fix: avoid ops deep link initialization error#2501
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
Agoniedi:fix-ops-deeplink-tdz

Conversation

@Agoniedi

Copy link
Copy Markdown
Contributor

Summary

Fixes a runtime error when opening the ops dashboard through a deep link that includes open_error_details=1.

The initial applyRouteQueryToState() call could access ops modal refs before those refs were initialized. In production builds this can surface as a temporal dead zone error with a minified variable name:

ReferenceError: Cannot access '<minified variable>' before initialization

Changes

  • Move the initial applyRouteQueryToState() call after the related ops modal state refs are initialized.

Verification

  • corepack pnpm run typecheck
  • corepack pnpm run build

@github-actions

github-actions Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@Agoniedi Agoniedi marked this pull request as ready for review May 15, 2026 16:03
@Agoniedi

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request May 15, 2026
@Wei-Shaw Wei-Shaw merged commit 089582d into Wei-Shaw:main May 19, 2026
8 of 9 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants