mirror of
https://github.com/apache/superset.git
synced 2026-04-10 11:55:24 +00:00
[sql lab] fix user timestamp is off (#2774)
This commit is contained in:
committed by
GitHub
parent
cbfe3cb2dc
commit
dbc7fef7f5
@@ -36,7 +36,7 @@ class QueryAutoRefresh extends React.PureComponent {
|
||||
stopwatch() {
|
||||
// only poll /superset/queries/ if there are started or running queries
|
||||
if (this.shouldCheckForQueries()) {
|
||||
const url = '/superset/queries/' + (this.props.queriesLastUpdate - QUERY_UPDATE_BUFFER_MS);
|
||||
const url = `/superset/queries/${this.props.queriesLastUpdate - QUERY_UPDATE_BUFFER_MS}`;
|
||||
$.getJSON(url, (data) => {
|
||||
if (Object.keys(data).length > 0) {
|
||||
this.props.actions.refreshQueries(data);
|
||||
|
||||
Reference in New Issue
Block a user