Skip to content

Commit 6b3f0f2

Browse files
authored
set undefined collection id instead of 'Drafts' (#8554)
1 parent 84311d6 commit 6b3f0f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/app/src/app/components/Create/CreateBox/CreateBoxForm.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,12 @@ export const CreateBoxForm: React.FC<CreateBoxFormProps> = ({
198198
icon={() => <Icon name="folder" size={12} />}
199199
value={collectionId}
200200
onChange={({ target: { value } }) => {
201-
setCollectionId(value);
201+
value === 'drafts'
202+
? setCollectionId(undefined)
203+
: setCollectionId(value);
202204
}}
203205
>
204-
<option key="drafts" value={null}>
206+
<option key="drafts" value="drafts">
205207
Drafts
206208
</option>
207209
{collectionsData?.me?.collections?.map(collection => (

0 commit comments

Comments
 (0)