Skip to content

Commit

Permalink
Add disable
Browse files Browse the repository at this point in the history
  • Loading branch information
edlouth committed Aug 23, 2023
1 parent 8773797 commit 0c1d433
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ import SaveButton from "./SaveButton"

const defaultProps = {
workspaceId: "1",
inlineFilters: [],
inlineFilters: [
{
type: "table",
field: null,
operator: null,
value: null,
},
],
}

test("renders", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const SaveButton: React.FC<SaveButtonProps> = ({
startIcon={<Save />}
sx={{ mb: 1 }}
onClick={handleOpen}
disabled={inlineFilters.length === 0}
>
Save
</Button>
Expand Down

0 comments on commit 0c1d433

Please sign in to comment.