refac
This commit is contained in:
1 parent
89922cc9d5
commit
629cdcb530
1 file changed
+3
-1
@@ -162,7 +162,9 @@
|
|||||||
|
|
||||||
// Reload when the period, group, or custom range changes.
|
// Reload when the period, group, or custom range changes.
|
||||||
// In custom mode, wait until both dates are set to avoid a half-specified query.
|
// In custom mode, wait until both dates are set to avoid a half-specified query.
|
||||||
$: if (selectedPeriod === 'custom' ? customStart && customEnd : selectedPeriod) {
|
$: if (selectedPeriod === 'custom' && !(customStart && customEnd)) {
|
||||||
|
loading = false;
|
||||||
|
} else if (selectedPeriod) {
|
||||||
// reference customStart/customEnd so this block reruns when they change
|
// reference customStart/customEnd so this block reruns when they change
|
||||||
customStart;
|
customStart;
|
||||||
customEnd;
|
customEnd;
|
||||||
|
|||||||
Reference in new issue
Block a user