🐛 Fixed SA draft option to hold value across renders
This commit is contained in:
parent
693b94a4e2
commit
2a4c6b8656
3 changed files with 26 additions and 4 deletions
|
@ -66,6 +66,13 @@ const DraftSettings = props => {
|
|||
childProps.parts[part] = <FormattedMessage id={"parts." + part} />;
|
||||
}
|
||||
}
|
||||
if (
|
||||
typeof props.gist !== "undefined" &&
|
||||
typeof props.gist.settings !== "undefined" &&
|
||||
typeof props.gist.settings[setting] !== "undefined"
|
||||
)
|
||||
childProps.value = props.gist.settings[setting];
|
||||
else childProps.value = null;
|
||||
|
||||
return childProps;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue