Skip to content

Commit

Permalink
Fix being unable to save post-processing config
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed Dec 25, 2019
1 parent 9f771b2 commit ddf81b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion medusa/server/api/v2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ class ConfigHandler(BaseRequestHandler):
'postProcessing.syncFiles': ListField(app, 'SYNC_FILES'),
'postProcessing.fileTimestampTimezone': StringField(app, 'FILE_TIMESTAMP_TIMEZONE'),
'postProcessing.extraScripts': ListField(app, 'EXTRA_SCRIPTS'),
'postProcessing.extraScriptsUrl': StringField(app, 'EXTRA_SCRIPTS_URL'),
'postProcessing.naming.pattern': StringField(app, 'NAMING_PATTERN'),
'postProcessing.naming.enableCustomNamingAnime': BooleanField(app, 'NAMING_CUSTOM_ANIME'),
'postProcessing.naming.enableCustomNamingSports': BooleanField(app, 'NAMING_CUSTOM_SPORTS'),
Expand Down
4 changes: 2 additions & 2 deletions themes-default/slim/src/components/config-post-processing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,12 @@ export default {
// Clone the config into a new object
const config = Object.assign({}, {
postprocessing,
postProcessing: postprocessing,
metadata
});
// Use destructuring to remove the unwanted keys.
const { multiEpStrings, reflinkAvailable, ...rest } = postprocessing;
const { multiEpStrings, reflinkAvailable, extraScriptsUrl, ...rest } = postprocessing;
// Assign the object with the keys removed to our copied object.
config.postProcessing = rest;
Expand Down
Loading

0 comments on commit ddf81b8

Please sign in to comment.