analytics/assets
Karl-Aksel Puulmann 35851e9084
Comparisons: Only render comparisons in top stats when both query and data supports it (#4732)
* Comparisons: Only render comparisons in top stats when both query and data support it

This fixes a bug from navigation:
1. Comparison disabled, choose a non-realtime period (e.g. press T for "Last 30 days")
2. Enable comparison mode (press X)
3. Choose the realtime period (press R)
4. Choose a non-realtime period again (press T)

Kudos to robert for discovering the repro case.

* Fix conditional

Broken when fixing another bug d727ba5ed5 (diff-f2361637bc87773faced883d7560491e4612b7581f4748f03241821f4ff8f6feL166)
2024-10-24 08:27:55 +00:00
..
css Add Typescript (#4427) 2024-08-13 11:39:35 +03:00
js Comparisons: Only render comparisons in top stats when both query and data supports it (#4732) 2024-10-24 08:27:55 +00:00
test-utils Remove duplication related to nav menu (#4666) 2024-10-15 08:13:07 +00:00
.eslintrc.json Add testing framework (#4440) 2024-08-15 12:27:22 +03:00
.prettierignore 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
.prettierrc.json Add Typescript (#4427) 2024-08-13 11:39:35 +03:00
.stylelintrc.json Update assets dev dependencies 2024-08-12 09:39:25 +03:00
jest.config.json Add testing framework (#4440) 2024-08-15 12:27:22 +03:00
package-lock.json Automatically generate Typescript types for v2 API query schema (#4574) 2024-09-18 11:01:20 +00:00
package.json Automatically generate Typescript types for v2 API query schema (#4574) 2024-09-18 11:01:20 +00:00
tailwind.config.js Add Typescript (#4427) 2024-08-13 11:39:35 +03:00
tsconfig.json Update Typescript config and add typecheck to CI 2024-08-21 12:40:22 +03:00