Skip to content

Commit 790baa1

Browse files
review comments
1 parent dd2881e commit 790baa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/api/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from '@/store/mutation-types'
2525

2626
const getAPICommandsRegex = /^(get|list|query|find)\w+$/i
27-
const addlGetAPICommandsList = [
27+
const additionalGetAPICommandsList = [
2828
'isaccountallowedtocreateofferingswithtags',
2929
'readyforshutdown',
3030
'cloudianisenabled',
@@ -78,7 +78,7 @@ export function postAPI (command, data = {}) {
7878
}
7979

8080
export function callAPI (command, args = {}) {
81-
const isGetAPICommand = getAPICommandsRegex.test(command) || addlGetAPICommandsList.includes(command.toLowerCase())
81+
const isGetAPICommand = getAPICommandsRegex.test(command) || additionalGetAPICommandsList.includes(command.toLowerCase())
8282
const call = isGetAPICommand ? getAPI : postAPI
8383
return call(command, args)
8484
}

0 commit comments

Comments
 (0)