From 6e6804055d2d83868659e438ee7298722f3d1e32 Mon Sep 17 00:00:00 2001 From: naman-bruno Date: Mon, 2 Feb 2026 21:31:01 +0530 Subject: [PATCH] fix: default format on import modal (#7017) --- .../src/components/Sidebar/ImportCollectionLocation/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js b/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js index 77648f6c6..094c2d9f6 100644 --- a/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js +++ b/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js @@ -16,6 +16,7 @@ import Modal from 'components/Modal'; import Help from 'components/Help'; import Dropdown from 'components/Dropdown'; import StyledWrapper from './StyledWrapper'; +import { DEFAULT_COLLECTION_FORMAT } from 'utils/common/constants'; // Extract collection name from raw data const getCollectionName = (format, rawData) => { @@ -92,7 +93,7 @@ const ImportCollectionLocation = ({ onClose, handleSubmit, rawData, format }) => const inputRef = useRef(); const dispatch = useDispatch(); const [groupingType, setGroupingType] = useState('tags'); - const [collectionFormat, setCollectionFormat] = useState('bru'); + const [collectionFormat, setCollectionFormat] = useState(DEFAULT_COLLECTION_FORMAT); const dropdownTippyRef = useRef(); const isOpenApi = format === 'openapi';