fix: update default state for advanced options and change default collection format (#6366)

This commit is contained in:
Abhishek S Lal
2025-12-09 22:54:56 +05:30
committed by GitHub
parent cf4c896431
commit 879d2271b7

View File

@@ -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()