From 6d04ae7881bcff35aa05e744b980ad9a2584bb9d Mon Sep 17 00:00:00 2001 From: Mohd Ashraf <57627350+mohdashraf010897@users.noreply.github.com> Date: Mon, 8 May 2023 14:33:30 +0530 Subject: [PATCH] fix(vue): null handling --- packages/vue/src/components/search/SearchBox.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue/src/components/search/SearchBox.jsx b/packages/vue/src/components/search/SearchBox.jsx index 83f0af696..cb51b761b 100644 --- a/packages/vue/src/components/search/SearchBox.jsx +++ b/packages/vue/src/components/search/SearchBox.jsx @@ -1300,7 +1300,7 @@ const SearchBox = defineComponent({ }, renderAskButtonElement() { const { AIUIConfig, innerClass } = this.$props; - const { askButton } = AIUIConfig; + const { askButton } = AIUIConfig || {}; const { renderAskButton } = this.$slots; if (askButton) { const getEnterButtonMarkup = () => {