Skip to content

Commit

Permalink
Disable select mode when no tables
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Oct 22, 2024
1 parent eb676a5 commit f1033f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-console/src/scenes/Schema/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -458,6 +458,7 @@ const Schema = ({
}}
{...(selectOpen ? { className: "selected" } : {})}
selected={selectOpen}
disabled={tables?.length === 0}
>
<CheckboxCircle size="18px" />
</ToolbarToggleButton>
Expand Down

0 comments on commit f1033f9

Please sign in to comment.