Skip to content

Conversation

@ThomasK33
Copy link
Member

@ThomasK33 ThomasK33 commented Feb 26, 2025

The preview was panicking because the app state had an optional base URL, which is getting unwrapped elsewhere. This creates an app state and then 'logs in' to set the base URL, reenabling the preview.

Change-Id: I8d6a19063a13f772dc409bc5e523e1af9c109bee
Signed-off-by: Thomas Kosiewski [email protected]

Change-Id: I8d6a19063a13f772dc409bc5e523e1af9c109bee
Signed-off-by: Thomas Kosiewski <[email protected]>
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ThomasK33 ThomasK33 self-assigned this Feb 26, 2025
@ThomasK33 ThomasK33 marked this pull request as ready for review February 26, 2025 17:22
// Stored in Keychain
@Published private(set) var sessionToken: String? {
didSet {
guard persistent else { return }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already guarded in keychainSet

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, it would have been wise of me to check that. 😅

I will keep it in for consistency with the setters above and below, as it appeared somewhat odd. This also ensures that we are doubly safe.

Copy link
Member Author

ThomasK33 commented Feb 27, 2025

Merge activity

  • Feb 27, 6:45 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 27, 6:45 AM EST: A user merged this pull request with Graphite.

@ThomasK33 ThomasK33 merged commit 3a520d5 into main Feb 27, 2025
4 checks passed
@deansheather deansheather deleted the thomask33/02-26-fix_canvas_preview_panic_in_xcode_resolved branch March 7, 2025 07:37
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.

2 participants