Skip to content

Commit e385fbb

Browse files
authored
fix: set name + url as required (#1419)
1 parent 7cd599d commit e385fbb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/studio/src/features/dashboard/components/FolderSettingsModal/FolderSettingsModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const SuspendableModalContent = ({
160160
<ModalCloseButton size="lg" />
161161
<ModalBody>
162162
<VStack alignItems="flex-start" spacing="1.5rem">
163-
<FormControl isInvalid={!!errors.title}>
163+
<FormControl isRequired isInvalid={!!errors.title}>
164164
<FormLabel color="base.content.strong">
165165
Folder name
166166
<FormHelperText color="base.content.default">
@@ -182,7 +182,7 @@ const SuspendableModalContent = ({
182182
</FormHelperText>
183183
)}
184184
</FormControl>
185-
<FormControl isInvalid={!!errors.permalink}>
185+
<FormControl isRequired isInvalid={!!errors.permalink}>
186186
<FormLabel color="base.content.strong">
187187
Folder URL
188188
<FormHelperText color="base.content.default">

apps/studio/src/features/editing-experience/components/CreateCollectionModal/CreateCollectionModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const CreateCollectionModalContent = ({
136136
<ModalCloseButton size="lg" />
137137
<ModalBody>
138138
<VStack alignItems="flex-start" spacing="1.5rem">
139-
<FormControl isInvalid={!!errors.collectionTitle}>
139+
<FormControl isRequired isInvalid={!!errors.collectionTitle}>
140140
<FormLabel color="base.content.strong">
141141
Collection name
142142
<FormHelperText color="base.content.default">
@@ -159,7 +159,7 @@ const CreateCollectionModalContent = ({
159159
</FormHelperText>
160160
)}
161161
</FormControl>
162-
<FormControl isInvalid={!!errors.permalink}>
162+
<FormControl isRequired isInvalid={!!errors.permalink}>
163163
<FormLabel color="base.content.strong">
164164
Collection URL
165165
<FormHelperText color="base.content.default">

0 commit comments

Comments
 (0)