File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ui/src/views/tool/toolStore Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ function open(id: string) {
161161}
162162
163163async function getList() {
164+ filterList .value = null
164165 if (toolType .value === ' DATA_SOURCE' ) {
165166 categories .value = [
166167 {
@@ -194,7 +195,7 @@ async function getInternalToolList() {
194195 const categories = defaultCategories .value
195196 const res = await ToolStoreApi .getInternalToolList ({ name: searchValue .value }, loading )
196197 if (searchValue .value .length ) {
197- filterList .value = res .data
198+ filterList .value = [ ... res .data , ... filterList . value || []]
198199 } else {
199200 filterList .value = null
200201 categories .forEach ((category ) => {
@@ -223,7 +224,7 @@ async function getStoreToolList() {
223224 tool .desc = tool .description
224225 })
225226 if (searchValue .value .length ) {
226- filterList .value = res .data .apps
227+ filterList .value = [ ... res .data .apps , ... filterList . value || []]
227228 } else {
228229 filterList .value = null
229230 categories = tags .map ((tag : any ) => ({
You can’t perform that action at this time.
0 commit comments