mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 09:29:24 +00:00
remove lint
This commit is contained in:
parent
e71128d846
commit
bcba83ab43
@ -20,7 +20,7 @@ export function useSingleExpandController(opts: {
|
|||||||
// If single-expand is turned off, clear selection
|
// If single-expand is turned off, clear selection
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!enabled && expandedStep !== null) setExpandedStep(null);
|
if (!enabled && expandedStep !== null) setExpandedStep(null);
|
||||||
}, [enabled]); // eslint-disable-line react-hooks/exhaustive-deps
|
}, [enabled]);
|
||||||
|
|
||||||
// If the selected step becomes invisible, clear it
|
// If the selected step becomes invisible, clear it
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -28,7 +28,7 @@ export function useSingleExpandController(opts: {
|
|||||||
if (expandedStep && !visibleIds.includes(expandedStep)) {
|
if (expandedStep && !visibleIds.includes(expandedStep)) {
|
||||||
setExpandedStep(null);
|
setExpandedStep(null);
|
||||||
}
|
}
|
||||||
}, [enabled, expandedStep, visibleIds]); // eslint-disable-line react-hooks/exhaustive-deps
|
}, [enabled, expandedStep, visibleIds]);
|
||||||
|
|
||||||
// When results become visible, automatically expand them and collapse all others
|
// When results become visible, automatically expand them and collapse all others
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user