Skip to content

Commit

Permalink
clean up persistData attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed Jun 13, 2023
1 parent b17c87f commit 60fb700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/SqlLab/reducers/getInitialState.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function getInitialState({
activeTab.table_schemas
.filter(tableSchema => tableSchema.description !== null)
.forEach(tableSchema => {
const { dataPreviewQueryId } = tableSchema.description;
const { dataPreviewQueryId, ...persistData } = tableSchema.description;
const table = {
dbId: tableSchema.database_id,
queryEditorId: tableSchema.tab_state_id.toString(),
Expand All @@ -125,7 +125,7 @@ export default function getInitialState({
expanded: tableSchema.expanded,
id: tableSchema.id,
dataPreviewQueryId,
persistData: tableSchema.description,
persistData,
initialized: true,
};
tables = {
Expand Down

0 comments on commit 60fb700

Please sign in to comment.