From e1bf475f1fd2fb83744897a5afaa54781adb09f0 Mon Sep 17 00:00:00 2001 From: Luiz Fonseca Date: Wed, 4 Oct 2023 22:09:11 +0200 Subject: [PATCH] chore: pretty-quick fixes --- .../src/components/Sidebar/CreateCollection/index.js | 9 +++++---- .../bruno-app/src/utils/importers/insomnia-collection.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js b/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js index 9b56ca1b8..bfe59ae86 100644 --- a/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js +++ b/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js @@ -29,9 +29,7 @@ const CreateCollection = ({ onClose }) => { .max(50, 'must be 50 characters or less') .matches(/^[\w\-. ]+$/, 'Folder name contains invalid characters') .required('folder name is required'), - collectionLocation: Yup.string() - .min(1, 'location is required') - .required('location is required'), + collectionLocation: Yup.string().min(1, 'location is required').required('location is required') }), onSubmit: (values) => { dispatch(createCollection(values.collectionName, values.collectionFolderName, values.collectionLocation)) @@ -116,7 +114,10 @@ const CreateCollection = ({ onClose }) => { { return nameSuffix; }, 0); return nameSuffix !== 0 ? `${item.name}_${nameSuffix}` : item.name; -} +}; const transformInsomniaRequestItem = (request, index, allRequests) => { const name = addSuffixToDuplicateName(request, index, allRequests);