Skip to content

Commit

Permalink
fix: minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Jan 14, 2024
1 parent cc72beb commit 1cc1944
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion frontend/src/query/visual/ExpressionBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ const suggestionContext = reactive({
const codeViewUpdate = debounce(function ({ cursorPos: _cursorPos }) {
functionHelp.value = null
if (!rawExpression.value) return
if (!rawExpression.value) {
suggestionContext.from = null
suggestionContext.to = null
suggestionContext.text = null
return
}
const tokens = parse(rawExpression.value).tokens
const token = tokens
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/widgets/useChartData.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function useChartData(options = {}) {
state.rawData = getFormattedResult(results)
state.data = convertResultToObjects(state.rawData)
})
.error((error) => {
.catch((error) => {
state.loading = false
state.error = error
})
Expand Down

0 comments on commit 1cc1944

Please sign in to comment.