Update whitebox snap step retrieval in App.tsx

This commit is contained in:
2026-04-11 14:28:18 +02:00
parent 347fc8d179
commit 94548a6396

View File

@@ -1738,10 +1738,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
const canScaleSelectedTarget =
selectedTransformTarget !== null &&
supportsTransformOperation(selectedTransformTarget, "scale");
const whiteboxSnapStep = resolveOptionalPositiveNumber(
whiteboxSnapStepDraft,
DEFAULT_GRID_SIZE
);
const whiteboxSnapStep = editorState.whiteboxSnapStep;
const whiteboxVectorInputStep = getWhiteboxInputStep(
whiteboxSnapEnabled,
whiteboxSnapStep