diff --git a/packages/web-console/src/scenes/Schema/index.tsx b/packages/web-console/src/scenes/Schema/index.tsx index 769800e2c..4b5ac3028 100644 --- a/packages/web-console/src/scenes/Schema/index.tsx +++ b/packages/web-console/src/scenes/Schema/index.tsx @@ -104,7 +104,7 @@ const FlexSpacer = styled.div` ` const ToolbarToggleButton = styled(PrimaryToggleButton)` - && { + &&:not(:disabled) { width: auto; padding: 0 1rem; border: 1px solid ${({ theme }) => theme.color.selection}; @@ -458,6 +458,7 @@ const Schema = ({ }} {...(selectOpen ? { className: "selected" } : {})} selected={selectOpen} + disabled={tables?.length === 0} >