refactor: replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with functions which work similarily but aren't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
Tobias Speicher
2022-04-04 04:55:50 +02:00
parent c817c97da4
commit f915c7e371
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export default {
methods: {
...mapActions('Settings', ['saveValue']),
getSettingComponent (setting) {
return 'Setting' + setting.type[0].toUpperCase() + setting.type.substr(1)
return 'Setting' + setting.type[0].toUpperCase() + setting.type.slice(1)
},
getValue (setting) {
return this.getSettingsValue({ settingId: setting.id })