Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
ablack12 committed Feb 14, 2024
1 parent bf11608 commit d3601bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Spawn/spawnHostModal/getFormSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
} from "gql/generated/types";
import { shortenGithash } from "utils/string";
import { getDefaultExpiration } from "../utils";
import { DEFAULT_VOLUME_SIZE } from "./constants";
import { validateTask } from "./utils";
import { DistroDropdown } from "./Widgets/DistroDropdown";
import {DEFAULT_VOLUME_SIZE} from "./constants";

interface Props {
distros: {
Expand Down
7 changes: 5 additions & 2 deletions src/components/Spawn/spawnVolumeModal/getFormSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { add } from "date-fns";
import { GetFormSchema } from "components/SpruceForm/types";
import { ExpirationRow } from "../ExpirationRow";
import { getDefaultExpiration } from "../utils";
import {MAX_VOLUME_SIZE} from "./constants";
import { MAX_VOLUME_SIZE } from "./constants";

interface Props {
availabilityZones: string[];
Expand Down Expand Up @@ -33,7 +33,10 @@ export const getFormSchema = ({
size: {
title: "Size (GiB)",
type: "number" as "number",
default: maxSpawnableLimit > MAX_VOLUME_SIZE ? MAX_VOLUME_SIZE : maxSpawnableLimit,
default:
maxSpawnableLimit > MAX_VOLUME_SIZE
? MAX_VOLUME_SIZE
: maxSpawnableLimit,
minimum: 1,
maximum: maxSpawnableLimit,
},
Expand Down

0 comments on commit d3601bb

Please sign in to comment.