Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
jesuyedavid committed Oct 4, 2023
1 parent 39c7b6a commit cfe6192
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/components/search/autocompletecomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}));
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/rendering/defaulttemplatesloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit cfe6192

Please sign in to comment.