Skip to content

Commit

Permalink
Fixes typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle committed Dec 15, 2024
1 parent 73925d8 commit 92ce5dd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DeleteLimitDialog = ({ limit, onOpenChange, onDelete }: Props) => {
const { deleteGlobalConcurrencyLimit, isPending } =
useDeleteGlobalConcurrencyLimit();

const handleOnClick = (id: string | undefined) => {
const handleOnClick = (id: string) => {
deleteGlobalConcurrencyLimit(id, {
onSuccess: () => {
toast({ description: "Concurrency limit deleted" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,14 @@ function createRandomEnrichedFlowRun(): React.ComponentProps<
paused: faker.datatype.boolean(),
status: faker.helpers.arrayElement(["READY", "NOT_READY"]),
enforce_parameter_schema: faker.datatype.boolean(),
created: faker.date.past().toISOString(),
updated: faker.date.past().toISOString(),
},
flow: {
id: faker.string.uuid(),
name: `${faker.finance.currencyName()} ${faker.commerce.product()}`,
created: faker.date.past().toISOString(),
updated: faker.date.past().toISOString(),
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion ui-v2/src/components/ui/state-badge/state-badge.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("StateBadge", () => {
test.each(states)(
"renders correct icon and classes for $type state",
({ type, name }) => {
render(<StateBadge state={{ type, name }} />);
render(<StateBadge state={{ id: "1", type, name }} />);

// Check if state name is rendered
expect(screen.getByText(name)).toBeInTheDocument();
Expand Down
2 changes: 2 additions & 0 deletions ui-v2/src/hooks/global-concurrency-limits.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ describe("global concurrency limits hooks", () => {
const UPDATED_LIMIT = {
...UPDATED_LIMIT_BODY,
id: MOCK_UPDATE_LIMIT_ID,
created: "2021-01-01T00:00:00Z",
updated: "2021-01-01T00:00:00Z",
};

// ------------ Mock API requests after queries are invalidated
Expand Down

0 comments on commit 92ce5dd

Please # to comment.