mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
chore: Remove actions prop and refactor code in SQL Lab (#22231)
This commit is contained in:
@@ -20,16 +20,8 @@ import React from 'react';
|
||||
import { render, screen } from 'spec/helpers/testing-library';
|
||||
import QueryHistory from 'src/SqlLab/components/QueryHistory';
|
||||
|
||||
const NOOP = () => {};
|
||||
const mockedProps = {
|
||||
queries: [],
|
||||
actions: {
|
||||
queryEditorSetAndSaveSql: NOOP,
|
||||
cloneQueryToNewTab: NOOP,
|
||||
fetchQueryResults: NOOP,
|
||||
clearQueryResults: NOOP,
|
||||
removeQuery: NOOP,
|
||||
},
|
||||
displayLimit: 1000,
|
||||
latestQueryId: 'yhMUZCGb',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user