diff --git a/src/ui/components/search/autocompletecomponent.js b/src/ui/components/search/autocompletecomponent.js index 3f7a1d43a..4a303abad 100644 --- a/src/ui/components/search/autocompletecomponent.js +++ b/src/ui/components/search/autocompletecomponent.js @@ -214,7 +214,7 @@ export default class AutoCompleteComponent extends Component { resultIndex: this._resultIndex, promptHeader: this._originalQuery.length === 0 ? this.promptHeader : null, listLabelIdName: this.listLabelIdName, - autocompleteContainerIdName: `yxt-AutoComplete-container-${this._config.name ? this._config.name.replaceAll('.', '-') : ''}`, + autocompleteContainerIdName: `yxt-AutoComplete-container-${this._config.name?.replaceAll('.', '-')}`, eventOptions: this.eventOptions(data) })); } diff --git a/src/ui/rendering/defaulttemplatesloader.js b/src/ui/rendering/defaulttemplatesloader.js index a8523e9c9..055805d4a 100644 --- a/src/ui/rendering/defaulttemplatesloader.js +++ b/src/ui/rendering/defaulttemplatesloader.js @@ -44,7 +44,7 @@ export default class DefaultTemplatesLoader { onload: resolve, onerror: reject, async: true, - src: COMPILED_TEMPLATES_URL + src: 'answerstemplates.compiled.min.js' }); DOM.append('body', script); });