Skip to content

Commit 68acfc2

Browse files
subirjollySubir Jolly
andauthored
fix: bucket selector toggle selection error fix (#3665)
Co-authored-by: Subir Jolly <sjolly@influxdata.com>
1 parent 36df7ee commit 68acfc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/flows/pipes/QueryBuilder/context.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ export const QueryBuilderProvider: FC = ({children}) => {
285285

286286
const loadValues = useCallback(
287287
(idx, search) => {
288-
if (cardMeta[idx].loadingValues === RemoteDataState.Loading) {
288+
if (
289+
cardMeta[idx].loadingValues === RemoteDataState.Loading ||
290+
!data.buckets.length
291+
) {
289292
return
290293
}
291294

0 commit comments

Comments
 (0)