1
0
Fork 0

chore: Do not initialize editor with default settings

This commit is contained in:
joostdecock 2025-04-27 15:20:11 +02:00
parent f3c2996ec6
commit a97bb4e803

View file

@ -14,11 +14,6 @@ import { LoadingStatus } from './components/LoadingStatus.mjs'
import { ModalContextProvider } from '@freesewing/react/context/Modal'
import { LoadingStatusContextProvider } from '@freesewing/react/context/LoadingStatus'
/**
* Default setting values for the editor
*/
const defaultSettings = { sa: false, paperless: false, expand: false, complete: true }
/**
* FreeSewing's pattern editor
*
@ -117,10 +112,6 @@ export const Editor = ({
*/
const passDownState = {
...state,
// Preset the default value of the pattern settings if not given.
// Otherwise, we would later need to be very careful
// when handling undefined/unset settings (including in the pattern code).
settings: { ...defaultSettings, ...state.settings },
_: { ...ephemeralState, missingMeasurements },
}