Skip to content

Commit d5e2584

Browse files
committed
Small fix for Dashboard lastUpdatedDate
1 parent d67d2d3 commit d5e2584

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/MyStore/PeriodDataViewController.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ class PeriodDataViewController: UIViewController, IndicatorInfoProvider {
100100
init(granularity: StatGranularity) {
101101
self.granularity = granularity
102102
super.init(nibName: type(of: self).nibName, bundle: nil)
103+
104+
// Make sure the ResultsControllers are ready to observe changes to the data even before the view loads
105+
self.configureResultsControllers()
103106
}
104107

105108
/// NSCoder Conformance
@@ -112,9 +115,8 @@ class PeriodDataViewController: UIViewController, IndicatorInfoProvider {
112115

113116
override func viewDidLoad() {
114117
super.viewDidLoad()
115-
configureView()
116-
configureResultsControllers()
117-
configureBarChart()
118+
self.configureView()
119+
self.configureBarChart()
118120
}
119121

120122
override func viewDidAppear(_ animated: Bool) {

0 commit comments

Comments
 (0)