Skip to content
Snippets Groups Projects
Commit 30856962 authored by Lukas's avatar Lukas
Browse files

Fix merge conflicts

parents 2cd7c68b 1de8a5bf
No related branches found
No related tags found
1 merge request!527Lbudginas/#428 comment search operation type search trigger
Pipeline #113941 failed
......@@ -71,7 +71,9 @@ const OperationTypesDialog: React.FC<OperationTypesDialogProps> = ({
const [isOpen, setIsOpen] = useState<boolean>(false);
const { settings } = useUserSettingsContext();
const [searchTerm, setSearchTerm] = useState("");
const [expandedSections, setExpandedSections] = useState<string[]>([]);
const [expandedSections, setExpandedSections] = useState<string[]>(
categorizedOperationTypes.map((cat) => cat.name)
);
const categoryHeadersRef = useRef<Record<string, HTMLDivElement | undefined>>(
{} as Record<string, HTMLDivElement | undefined>
......@@ -90,8 +92,6 @@ const OperationTypesDialog: React.FC<OperationTypesDialogProps> = ({
)
.map((cat) => cat.name);
setExpandedSections(allMatchingCategories);
} else {
setExpandedSections([]);
}
}, [searchTerm, operationTypes]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment