make it dependent on one signle state

This commit is contained in:
dwelle 2025-04-30 10:32:53 +02:00
parent 9ea9275fbd
commit 4630001dee

View file

@ -325,8 +325,8 @@ const Panel = ({
trackEvent("shape-switch", type, "ui"); trackEvent("shape-switch", type, "ui");
} }
switchShapes(app, { switchShapes(app, {
generic: isConvertibleGenericType(type), generic,
linear: isConvertibleLinearType(type), linear,
nextType: type as nextType: type as
| ConvertibleGenericTypes | ConvertibleGenericTypes
| ConvertibleLinearTypes, | ConvertibleLinearTypes,