chore: Replace deprecated functions (#5611)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
David Kubeš
2022-10-12 23:55:59 +02:00
committed by GitHub
parent 0c8f744c33
commit 6c048626d0
7 changed files with 8 additions and 8 deletions

View File

@@ -239,7 +239,7 @@ export default {
const hasNextWord = value.includes(' ');
const isShortCodeActive = this.hasSlashCommand && !hasNextWord;
if (isShortCodeActive) {
this.cannedResponseSearchKey = value.substr(1, value.length);
this.cannedResponseSearchKey = value.substring(1);
this.showCannedResponseMenu = true;
} else {
this.cannedResponseSearchKey = '';

View File

@@ -243,7 +243,7 @@ export default {
this.$t('INBOX_MGMT.WIDGET_BUILDER.SCRIPT_SETTINGS', {
options: JSON.stringify(options),
}) +
script.substring(13, script.length)
script.substring(13)
);
},
getWidgetViewOptions() {