Skip to content

Commit

Permalink
fix refresh for block last run time
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Nov 1, 2024
1 parent c885df4 commit f0240a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,14 @@ function PythonBlock(props: Props) {
}

return null
}, [status, lastQuery, lastQueryTime, source, envStatus])
}, [
status,
startQueryTime,
lastQuery,
lastQueryTime,
source.toJSON(),
envStatus,
])

const isCodeHidden = props.block.getAttribute('isCodeHidden')
const isResultHidden = props.block.getAttribute('isResultHidden')
Expand Down
9 changes: 8 additions & 1 deletion apps/web/src/components/v2Editor/customBlocks/sql/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,14 @@ function SQLBlock(props: Props) {
)
}
}
}, [execStatus, source, lastQuery, lastQueryTime, startQueryTime, envStatus])
}, [
execStatus,
source.toJSON(),
lastQuery,
lastQueryTime,
startQueryTime,
envStatus,
])

const onSubmitEditWithAI = useCallback(() => {
requestSQLEditWithAI(props.block)
Expand Down

0 comments on commit f0240a2

Please sign in to comment.