We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1acb44 commit be35f31Copy full SHA for be35f31
WooCommerce/Classes/ViewRelated/Dashboard/DashboardViewController.swift
@@ -543,6 +543,12 @@ private extension DashboardViewController {
543
return
544
}
545
546
+ // Resets the Auto Layout constraint that pins the previous content view to the bottom of the header view.
547
+ // Otherwise, if `contentTopToHeaderConstraint?.isActive = true` is called after the previous content view is removed
548
+ // in the next line `remove(previousDashboardUI)`, the app crashes because the content view is no longer in the
549
+ // view hierarchy.
550
+ contentTopToHeaderConstraint = nil
551
+
552
// Tears down the previous child view controller.
553
if let previousDashboardUI = dashboardUI {
554
remove(previousDashboardUI)
0 commit comments