Skip to content

Commit 084b9be

Browse files
authored
Merge pull request #1248 from cmu-delphi/release/v3.2.10
Release v3.2.10
2 parents 8255f7a + 4615aba commit 084b9be

File tree

6 files changed

+168
-144
lines changed

6 files changed

+168
-144
lines changed

package-lock.json

Lines changed: 56 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "www-covidcast",
3-
"version": "3.2.9",
3+
"version": "3.2.10",
44
"private": true,
55
"license": "MIT",
66
"description": "",

src/blocks/IndicatorWarning.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@
3838
<div data-uk-alert class="uk-alert-warning">
3939
The indicator "{sensor.name}" is not available for {formatDateYearDayOfWeekAbbr(date.value)}, yet. The latest
4040
known data is available on
41-
<a href="?date={formatAPITime(sensor.timeFrame.max)}" on:click={switchDate}
42-
>{formatDateYearDayOfWeekAbbr(sensor.timeFrame.max)}</a
41+
<!--
42+
window.location.search.split('&').slice(1).join('&') is used to keep the query parameters except the date parameter.
43+
So we are getting query params from url, splitting them by & and removing the first element which is date parameter.
44+
-->
45+
<a
46+
href="?date={formatAPITime(sensor.timeFrame.max)}&{window.location.search.split('&').slice(1).join('&')}"
47+
on:click={switchDate}>{formatDateYearDayOfWeekAbbr(sensor.timeFrame.max)}</a
4348
>.
4449
</div>
4550
{/if}

0 commit comments

Comments
 (0)