Skip to content

Commit b479d37

Browse files
authored
ui: fix api type in InfiniteScrollSelect (#11370)
Earlier it was always using HTTP POST. Ideally it will always be some list API. Signed-off-by: Abhishek Kumar <[email protected]>
1 parent a60c8ca commit b479d37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/widgets/InfiniteScrollSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
</template>
8989

9090
<script>
91-
import { getAPI } from '@/api'
91+
import { callAPI } from '@/api/index'
9292
import ResourceIcon from '@/components/view/ResourceIcon'
9393
9494
export default {
@@ -191,7 +191,7 @@ export default {
191191
if (this.showIcon) {
192192
params.showicon = true
193193
}
194-
getAPI(this.api, params).then(json => {
194+
callAPI(this.api, params).then(json => {
195195
const response = json[this.api.toLowerCase() + 'response'] || {}
196196
if (this.totalCount === null) {
197197
this.totalCount = response.count || 0

0 commit comments

Comments
 (0)