mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-15 20:01:28 +00:00
fix: update default state for advanced options and change default collection format (#6366)
This commit is contained in:
@@ -27,7 +27,7 @@ const CreateCollection = ({ onClose, defaultLocation: propDefaultLocation }) =>
|
||||
const [isEditing, toggleEditing] = useState(false);
|
||||
const preferences = useSelector((state) => state.app.preferences);
|
||||
const [showExternalLocation, setShowExternalLocation] = useState(false);
|
||||
const [showAdvanced, setShowAdvanced] = useState(false);
|
||||
const [showAdvanced, setShowAdvanced] = useState(true);
|
||||
const dropdownTippyRef = useRef();
|
||||
const onDropdownCreate = (ref) => (dropdownTippyRef.current = ref);
|
||||
|
||||
@@ -47,7 +47,7 @@ const CreateCollection = ({ onClose, defaultLocation: propDefaultLocation }) =>
|
||||
collectionName: '',
|
||||
collectionFolderName: '',
|
||||
collectionLocation: defaultLocation || '',
|
||||
format: 'yml'
|
||||
format: 'bru'
|
||||
},
|
||||
validationSchema: Yup.object({
|
||||
collectionName: Yup.string()
|
||||
|
||||
Reference in New Issue
Block a user