fix(wizard): reset active category to first category when entering step 3
All checks were successful
Staging Build / build (push) Successful in 2m54s
All checks were successful
Staging Build / build (push) Successful in 2m54s
This commit is contained in:
@@ -241,10 +241,10 @@ export function OrderWizard({
|
|||||||
}, [categories, selectedBillingInterval])
|
}, [categories, selectedBillingInterval])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (visibleCategories.length > 0 && !visibleCategories.some(c => c.id === activeCategoryId)) {
|
if (step === 3 && visibleCategories.length > 0) {
|
||||||
setActiveCategoryId(visibleCategories[0].id)
|
setActiveCategoryId(visibleCategories[0].id)
|
||||||
}
|
}
|
||||||
}, [visibleCategories, activeCategoryId])
|
}, [step, visibleCategories])
|
||||||
|
|
||||||
// Endkunden Filterung
|
// Endkunden Filterung
|
||||||
const filteredEndCustomers = useMemo(() => {
|
const filteredEndCustomers = useMemo(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user