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.
2 parents 9e3ebba + 231165b commit d299f71Copy full SHA for d299f71
src/slurmcostmanager.js
@@ -54,6 +54,12 @@ function useBillingData(period) {
54
55
const load = useCallback(async () => {
56
const id = ++requestIdRef.current;
57
+ // Clear out existing data while loading a new period so that views
58
+ // such as "Detailed Transactions" don't momentarily display data
59
+ // from the previously selected period (e.g. the fiscal year) when
60
+ // navigating directly between views.
61
+ setData(null);
62
+ setError(null);
63
try {
64
let json;
65
if (window.cockpit && window.cockpit.spawn) {
0 commit comments