chore: Do not initialize editor with default settings
This commit is contained in:
parent
f3c2996ec6
commit
a97bb4e803
1 changed files with 0 additions and 9 deletions
|
@ -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 },
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue