From 7e1458fd32f8c24e4da84097f6510b120e22907b Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:53:02 +0530 Subject: [PATCH] fix: Issue when saving hotkeys (#11026) # Pull Request Template ## Description This PR fixes an issue when saving send message button hotkeys, where a TypeError occurs: `this.updateUISettings is not a function`. This issue arises after merging this PR https://github.com/chatwoot/chatwoot/pull/10974 Fixes https://chatwoot-p3.sentry.io/issues/6339976939/events/ca9946f92cb74428a72f1f74976a56a3/ ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- .../dashboard/routes/dashboard/settings/profile/Index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/profile/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/profile/Index.vue index 85204627a..45a060e05 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/profile/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/profile/Index.vue @@ -39,13 +39,14 @@ export default { }, mixins: [globalConfigMixin], setup() { - const { isEditorHotKeyEnabled } = useUISettings(); + const { isEditorHotKeyEnabled, updateUISettings } = useUISettings(); const { currentFontSize, updateFontSize } = useFontSize(); return { currentFontSize, updateFontSize, isEditorHotKeyEnabled, + updateUISettings, }; }, data() {