Skip to content

Commit

Permalink
Fix bug in line chart when the time grain has not resolved (#3953)
Browse files Browse the repository at this point in the history
* Bugfix

* More precise conditional
  • Loading branch information
ericpgreen2 committed Jan 31, 2024
1 parent f792692 commit 1518d86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import { getOrderedStartEnd } from "@rilldata/web-common/features/dashboards/time-series/utils";
import { EntityStatus } from "@rilldata/web-common/features/entity-management/types";
import { adjustOffsetForZone } from "@rilldata/web-common/lib/convertTimestampPreview";
import { TIME_GRAIN } from "@rilldata/web-common/lib/time/config";
import { getAdjustedChartTime } from "@rilldata/web-common/lib/time/ranges";
import { TimeRangePreset } from "@rilldata/web-common/lib/time/types";
import { TIME_GRAIN } from "../../../lib/time/config";
import { runtime } from "../../../runtime-client/runtime-store";
import Spinner from "../../entity-management/Spinner.svelte";
import MeasureBigNumber from "../big-number/MeasureBigNumber.svelte";
Expand Down Expand Up @@ -277,7 +277,7 @@
<div style:height="125px">
{#if $timeSeriesDataStore?.isError}
<div class="p-5"><CrossIcon /></div>
{:else if formattedData}
{:else if formattedData && interval}
<MeasureChart
bind:mouseoverValue
{measure}
Expand Down

1 comment on commit 1518d86

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.