Skip to content

Commit

Permalink
set undefined collection id instead of 'Drafts' (#8554)
Browse files Browse the repository at this point in the history
  • Loading branch information
sannek authored Aug 22, 2024
1 parent 84311d6 commit 6b3f0f2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,12 @@ export const CreateBoxForm: React.FC<CreateBoxFormProps> = ({
icon={() => <Icon name="folder" size={12} />}
value={collectionId}
onChange={({ target: { value } }) => {
setCollectionId(value);
value === 'drafts'
? setCollectionId(undefined)
: setCollectionId(value);
}}
>
<option key="drafts" value={null}>
<option key="drafts" value="drafts">
Drafts
</option>
{collectionsData?.me?.collections?.map(collection => (
Expand Down

0 comments on commit 6b3f0f2

Please sign in to comment.