mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
Set default limit on creation of new qe and on run (#6400)
This commit is contained in:
committed by
timifasubaa
parent
c17de3940c
commit
8c4f723a61
@@ -149,7 +149,7 @@ class SqlEditor extends React.PureComponent {
|
||||
schema: qe.schema,
|
||||
tempTableName: ctas ? this.state.ctas : '',
|
||||
templateParams: qe.templateParams,
|
||||
queryLimit: qe.queryLimit,
|
||||
queryLimit: qe.queryLimit || this.props.defaultQueryLimit,
|
||||
runAsync,
|
||||
ctas,
|
||||
};
|
||||
|
||||
@@ -138,6 +138,7 @@ class TabbedSqlEditors extends React.PureComponent {
|
||||
sql: `${t(
|
||||
'-- Note: Unless you save your query, these tabs will NOT persist if you clear your cookies or change browsers.',
|
||||
)}\n\nSELECT ...`,
|
||||
queryLimit: this.props.defaultQueryLimit,
|
||||
};
|
||||
this.props.actions.addQueryEditor(qe);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user