Skip to content

Commit

Permalink
Review: Improve code clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
WiNloSt committed May 9, 2024
1 parent a513d2b commit 4654ee2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const _InteractiveQuestion = ({

const [isQuestionLoading, setIsQuestionLoading] = useState(true);

const { isRunning } = uiControls;
const { isRunning: isQueryRunning } = uiControls;

if (question) {
// FIXME: remove "You can also get an alert when there are some results." feature for question
Expand Down Expand Up @@ -103,7 +103,7 @@ export const _InteractiveQuestion = ({
}
}, [queryResults]);

if (isQuestionLoading || isRunning) {
if (isQuestionLoading || isQueryRunning) {
return <Loader data-testid="loading-spinner" />;
}

Expand Down Expand Up @@ -143,7 +143,7 @@ export const _InteractiveQuestion = ({
className={cx(CS.flexFull, CS.fullWidth, CS.fullHeight)}
question={question}
rawSeries={[{ card, data: result && result.data }]}
isRunning={isRunning}
isRunning={isQueryRunning}
isObjectDetail={false}
isResultDirty={false}
isNativeEditorOpen={false}
Expand Down

0 comments on commit 4654ee2

Please sign in to comment.