mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
fix(sqllab): remove set state on component update lifecycle (#21771)
This commit is contained in:
@@ -137,8 +137,6 @@ const StyledSidebar = styled.div`
|
||||
const propTypes = {
|
||||
actions: PropTypes.object.isRequired,
|
||||
tables: PropTypes.array.isRequired,
|
||||
editorQueries: PropTypes.array.isRequired,
|
||||
dataPreviewQueries: PropTypes.array.isRequired,
|
||||
queryEditor: PropTypes.object.isRequired,
|
||||
defaultQueryLimit: PropTypes.number.isRequired,
|
||||
maxRow: PropTypes.number.isRequired,
|
||||
@@ -150,8 +148,6 @@ const propTypes = {
|
||||
const SqlEditor = ({
|
||||
actions,
|
||||
tables,
|
||||
editorQueries,
|
||||
dataPreviewQueries,
|
||||
queryEditor,
|
||||
defaultQueryLimit,
|
||||
maxRow,
|
||||
@@ -622,9 +618,8 @@ const SqlEditor = ({
|
||||
{renderEditorBottomBar(hotkeys)}
|
||||
</div>
|
||||
<ConnectedSouthPane
|
||||
editorQueries={editorQueries}
|
||||
queryEditorId={queryEditor.id}
|
||||
latestQueryId={latestQuery?.id}
|
||||
dataPreviewQueries={dataPreviewQueries}
|
||||
actions={actions}
|
||||
height={southPaneHeight}
|
||||
displayLimit={displayLimit}
|
||||
|
||||
Reference in New Issue
Block a user