Core: Fix presets stripping framework field

This commit is contained in:
Michael Shilman 2022-04-08 20:35:43 +08:00
parent a77f2d513b
commit b6e27b045c

View File

@ -195,18 +195,18 @@ export function loadPreset(
} }
if (isObject(contents)) { if (isObject(contents)) {
const { addons: addonsInput, presets: presetsInput, framework, ...rest } = contents; const { addons: addonsInput, presets: presetsInput, ...rest } = contents;
const subPresets = resolvePresetFunction( const subPresets = resolvePresetFunction(
presetsInput, presetsInput,
presetOptions, presetOptions,
framework, rest.framework,
storybookOptions storybookOptions
); );
const subAddons = resolvePresetFunction( const subAddons = resolvePresetFunction(
addonsInput, addonsInput,
presetOptions, presetOptions,
framework, rest.framework,
storybookOptions storybookOptions
); );