Combine system preview generation options (#2328)

This commit is contained in:
WithoutPants
2022-02-20 11:08:21 +11:00
committed by GitHub
parent d678283486
commit 3475a33aab
2 changed files with 39 additions and 28 deletions

View File

@@ -51,12 +51,14 @@ export const GenerateDialog: React.FC<ISceneGenerateDialog> = ({
return;
}
// combine the defaults with the system preview generation settings
if (configuration?.defaults.generate) {
const { generate } = configuration.defaults;
setOptions(withoutTypename(generate));
setConfigRead(true);
} else if (configuration?.general) {
// backwards compatibility
}
if (configuration?.general) {
const { general } = configuration;
setOptions((existing) => ({
...existing,