diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-23 13:14:30 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-08-23 13:14:30 +0530 |
commit | 3579bdf2591ffb4d3f0920f30af804e7f77c2820 (patch) | |
tree | 41339c2775c7a83eddb685f6050d58c46e907ea1 /src/stores | |
parent | fix: Fixing bug where the service-defaults are not merged (diff) | |
download | ferdium-app-3579bdf2591ffb4d3f0920f30af804e7f77c2820.tar.gz ferdium-app-3579bdf2591ffb4d3f0920f30af804e7f77c2820.tar.zst ferdium-app-3579bdf2591ffb4d3f0920f30af804e7f77c2820.zip |
chore: linter fixes [skip ci]
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index ccd8e2cb9..8598c6234 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -401,21 +401,19 @@ export default class ServicesStore extends Store { | |||
401 | // set default values for serviceData | 401 | // set default values for serviceData |
402 | // eslint-disable-next-line prefer-object-spread | 402 | // eslint-disable-next-line prefer-object-spread |
403 | // TODO: How is this different from the defaults of the recipe in 'src/models/Recipe' file? | 403 | // TODO: How is this different from the defaults of the recipe in 'src/models/Recipe' file? |
404 | serviceData = Object.assign( | 404 | serviceData = { |
405 | { | 405 | isEnabled: true, |
406 | isEnabled: true, | 406 | isHibernationEnabled: false, |
407 | isHibernationEnabled: false, | 407 | isNotificationEnabled: true, |
408 | isNotificationEnabled: true, | 408 | isBadgeEnabled: true, |
409 | isBadgeEnabled: true, | 409 | isMuted: false, |
410 | isMuted: false, | 410 | customIcon: false, |
411 | customIcon: false, | 411 | isDarkModeEnabled: false, |
412 | isDarkModeEnabled: false, | 412 | spellcheckerLanguage: |
413 | spellcheckerLanguage: | ||
414 | SPELLCHECKER_LOCALES[this.stores.settings.app.spellcheckerLanguage], | 413 | SPELLCHECKER_LOCALES[this.stores.settings.app.spellcheckerLanguage], |
415 | userAgentPref: '', | 414 | userAgentPref: '', |
416 | }, | 415 | ...serviceData, |
417 | serviceData, | 416 | }; |
418 | ); | ||
419 | 417 | ||
420 | const data = skipCleanup ? serviceData : this._cleanUpTeamIdAndCustomUrl(recipeId, serviceData); | 418 | const data = skipCleanup ? serviceData : this._cleanUpTeamIdAndCustomUrl(recipeId, serviceData); |
421 | 419 | ||