Skip to content

Commit

Permalink
fix(vue): null handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdashraf010897 committed May 8, 2023
1 parent 17beaac commit 6d04ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue/src/components/search/SearchBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 6d04ae7

Please sign in to comment.