Skip to content

Commit 6c0b3d0

Browse files
authored
fix: hide the view timer in flux schema builder (#5046)
1 parent 51669c3 commit 6c0b3d0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/dataExplorer/components/Results.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,18 @@ const Results: FC = () => {
153153
} as SimpleTableViewProperties
154154
}
155155
result={res}
156+
hideTimer
156157
/>
157158
)
158159
} else {
159160
resultView = (
160161
<div style={{height: '100%', width: '100%', padding: 12}}>
161-
<View loading={status} properties={view.properties} result={res} />
162+
<View
163+
loading={status}
164+
properties={view.properties}
165+
result={res}
166+
hideTimer
167+
/>
162168
</div>
163169
)
164170
}

src/visualization/components/View.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface Props {
2424
timeRange?: TimeRange
2525
annotations?: AnnotationsList
2626
cellID?: string
27+
hideTimer?: boolean
2728
}
2829

2930
const InnerView: FC<Props> = ({
@@ -68,7 +69,9 @@ const InnerView: FC<Props> = ({
6869

6970
const View: FC<Props> = props => (
7071
<ErrorBoundary>
71-
<ViewLoadingSpinner loading={props.loading || RemoteDataState.Done} />
72+
{!props.hideTimer && (
73+
<ViewLoadingSpinner loading={props.loading || RemoteDataState.Done} />
74+
)}
7275
<InnerView {...props} />
7376
</ErrorBoundary>
7477
)

0 commit comments

Comments
 (0)