mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
fix(sqllab): error while removing a referenced table (#25114)
This commit is contained in:
@@ -22,7 +22,7 @@ import type { Table } from 'src/SqlLab/types';
|
||||
import Collapse from 'src/components/Collapse';
|
||||
import Card from 'src/components/Card';
|
||||
import ButtonGroup from 'src/components/ButtonGroup';
|
||||
import { css, t, styled } from '@superset-ui/core';
|
||||
import { css, t, styled, useTheme } from '@superset-ui/core';
|
||||
import { debounce } from 'lodash';
|
||||
|
||||
import {
|
||||
@@ -102,6 +102,7 @@ const StyledCollapsePanel = styled(Collapse.Panel)`
|
||||
|
||||
const TableElement = ({ table, ...props }: TableElementProps) => {
|
||||
const { dbId, schema, name, expanded } = table;
|
||||
const theme = useTheme();
|
||||
const dispatch = useDispatch();
|
||||
const {
|
||||
data: tableMetadata,
|
||||
@@ -253,7 +254,13 @@ const TableElement = ({ table, ...props }: TableElementProps) => {
|
||||
);
|
||||
}
|
||||
return (
|
||||
<ButtonGroup className="ws-el-controls">
|
||||
<ButtonGroup
|
||||
css={css`
|
||||
display: flex;
|
||||
column-gap: ${theme.gridUnit * 1.5}px;
|
||||
margin-right: ${theme.gridUnit}px;
|
||||
`}
|
||||
>
|
||||
{keyLink}
|
||||
<IconTooltip
|
||||
className={
|
||||
|
||||
Reference in New Issue
Block a user