Преглед изворни кода

Closed accordion by default

Steven Fukase пре 5 година
родитељ
комит
4a2b0a2997

+ 1 - 1
src/client/js/components/Admin/SlackIntegration/CustomBotWithoutProxySettingsAccordion.jsx

@@ -4,7 +4,7 @@ import { Collapse } from 'reactstrap';
 
 
 const CustomBotWithoutSettingsAccordion = () => {
 const CustomBotWithoutSettingsAccordion = () => {
   const { t } = useTranslation('admin');
   const { t } = useTranslation('admin');
-  const [currentlyOpenAccordionIndexes, setCurrentlyOpenAccordionIndexes] = useState([0]);
+  const [currentlyOpenAccordionIndexes, setCurrentlyOpenAccordionIndexes] = useState([]);
   const onToggleAccordionHandler = (i) => {
   const onToggleAccordionHandler = (i) => {
     if (currentlyOpenAccordionIndexes.includes(i)) {
     if (currentlyOpenAccordionIndexes.includes(i)) {
       const filteredArray = currentlyOpenAccordionIndexes.filter(n => n !== i);
       const filteredArray = currentlyOpenAccordionIndexes.filter(n => n !== i);