diff --git a/charts/kubedbcom-cassandra-editor-options/ui/functions.js b/charts/kubedbcom-cassandra-editor-options/ui/functions.js index 4262924cbc..f6d796c15d 100644 --- a/charts/kubedbcom-cassandra-editor-options/ui/functions.js +++ b/charts/kubedbcom-cassandra-editor-options/ui/functions.js @@ -871,10 +871,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-clickhouse-editor-options/ui/functions.js b/charts/kubedbcom-clickhouse-editor-options/ui/functions.js index bcb9ec7912..c2c2408405 100644 --- a/charts/kubedbcom-clickhouse-editor-options/ui/functions.js +++ b/charts/kubedbcom-clickhouse-editor-options/ui/functions.js @@ -898,9 +898,9 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-druid-editor-options/ui/functions.js b/charts/kubedbcom-druid-editor-options/ui/functions.js index 413ec214b9..80c59561da 100644 --- a/charts/kubedbcom-druid-editor-options/ui/functions.js +++ b/charts/kubedbcom-druid-editor-options/ui/functions.js @@ -896,10 +896,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-elasticsearch-editor-options/ui/functions.js b/charts/kubedbcom-elasticsearch-editor-options/ui/functions.js index d6f2d6adc2..ba38ecfc9a 100644 --- a/charts/kubedbcom-elasticsearch-editor-options/ui/functions.js +++ b/charts/kubedbcom-elasticsearch-editor-options/ui/functions.js @@ -664,9 +664,9 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-ferretdb-editor-options/ui/functions.js b/charts/kubedbcom-ferretdb-editor-options/ui/functions.js index 770ef8b6e9..9427b32d56 100644 --- a/charts/kubedbcom-ferretdb-editor-options/ui/functions.js +++ b/charts/kubedbcom-ferretdb-editor-options/ui/functions.js @@ -819,9 +819,9 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-hazelcast-editor-options/ui/functions.js b/charts/kubedbcom-hazelcast-editor-options/ui/functions.js index a15195aebf..187c49f27d 100644 --- a/charts/kubedbcom-hazelcast-editor-options/ui/functions.js +++ b/charts/kubedbcom-hazelcast-editor-options/ui/functions.js @@ -858,14 +858,14 @@ export const useFunc = (model) => { let archiverMap = [] let archiverCalled = false - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') if (type === 'storageClasses' && !archiverCalled) { getArchiverName() } - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-ignite-editor-options/ui/functions.js b/charts/kubedbcom-ignite-editor-options/ui/functions.js index 12d702e477..d38e3b0b4c 100644 --- a/charts/kubedbcom-ignite-editor-options/ui/functions.js +++ b/charts/kubedbcom-ignite-editor-options/ui/functions.js @@ -853,10 +853,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-kafka-editor-options/ui/functions.js b/charts/kubedbcom-kafka-editor-options/ui/functions.js index 793065adf2..77851b0be4 100644 --- a/charts/kubedbcom-kafka-editor-options/ui/functions.js +++ b/charts/kubedbcom-kafka-editor-options/ui/functions.js @@ -717,10 +717,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-mariadb-editor-options/ui/functions.js b/charts/kubedbcom-mariadb-editor-options/ui/functions.js index efb39542d5..05cd6d3604 100644 --- a/charts/kubedbcom-mariadb-editor-options/ui/functions.js +++ b/charts/kubedbcom-mariadb-editor-options/ui/functions.js @@ -890,14 +890,14 @@ export const useFunc = (model) => { let archiverMap = [] let archiverCalled = false - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') if (type === 'storageClasses' && !archiverCalled) { getArchiverName() } - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-memcached-editor-options/ui/functions.js b/charts/kubedbcom-memcached-editor-options/ui/functions.js index c362495873..a1233d585e 100644 --- a/charts/kubedbcom-memcached-editor-options/ui/functions.js +++ b/charts/kubedbcom-memcached-editor-options/ui/functions.js @@ -832,10 +832,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = await getValue(model, `/spec/admin/${type}/available`) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-mongodb-editor-options/ui/functions.js b/charts/kubedbcom-mongodb-editor-options/ui/functions.js index f134b05627..6a1398e61e 100644 --- a/charts/kubedbcom-mongodb-editor-options/ui/functions.js +++ b/charts/kubedbcom-mongodb-editor-options/ui/functions.js @@ -1007,14 +1007,14 @@ export const useFunc = (model) => { let archiverMap = [] let archiverCalled = false - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') if (type === 'storageClasses' && !archiverCalled) { getArchiverName() } - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-mssqlserver-editor-options/ui/functions.js b/charts/kubedbcom-mssqlserver-editor-options/ui/functions.js index 848195e88b..1f0ca4d2d2 100644 --- a/charts/kubedbcom-mssqlserver-editor-options/ui/functions.js +++ b/charts/kubedbcom-mssqlserver-editor-options/ui/functions.js @@ -952,14 +952,14 @@ export const useFunc = (model) => { let archiverMap = [] let archiverCalled = false - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') if (type === 'storageClasses' && !archiverCalled) { getArchiverName() } - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-mysql-editor-options/ui/functions.js b/charts/kubedbcom-mysql-editor-options/ui/functions.js index 2c9b50ab9f..ce5ec045c5 100644 --- a/charts/kubedbcom-mysql-editor-options/ui/functions.js +++ b/charts/kubedbcom-mysql-editor-options/ui/functions.js @@ -889,14 +889,14 @@ export const useFunc = (model) => { let archiverMap = [] let archiverCalled = false - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') if (type === 'storageClasses' && !archiverCalled) { getArchiverName() } - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-oracle-editor-options/ui/functions.js b/charts/kubedbcom-oracle-editor-options/ui/functions.js index c170723a1e..c1a2564278 100644 --- a/charts/kubedbcom-oracle-editor-options/ui/functions.js +++ b/charts/kubedbcom-oracle-editor-options/ui/functions.js @@ -846,10 +846,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // // // // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-perconaxtradb-editor-options/ui/functions.js b/charts/kubedbcom-perconaxtradb-editor-options/ui/functions.js index 614d8ec5d2..0b1ba6edb9 100644 --- a/charts/kubedbcom-perconaxtradb-editor-options/ui/functions.js +++ b/charts/kubedbcom-perconaxtradb-editor-options/ui/functions.js @@ -828,10 +828,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-pgbouncer-editor-options/ui/functions.js b/charts/kubedbcom-pgbouncer-editor-options/ui/functions.js index e7ff7a9ffb..b269d2136f 100644 --- a/charts/kubedbcom-pgbouncer-editor-options/ui/functions.js +++ b/charts/kubedbcom-pgbouncer-editor-options/ui/functions.js @@ -759,10 +759,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-pgpool-editor-options/ui/functions.js b/charts/kubedbcom-pgpool-editor-options/ui/functions.js index fc3904eac0..66ec30192c 100644 --- a/charts/kubedbcom-pgpool-editor-options/ui/functions.js +++ b/charts/kubedbcom-pgpool-editor-options/ui/functions.js @@ -800,10 +800,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-postgres-editor-options/ui/functions.js b/charts/kubedbcom-postgres-editor-options/ui/functions.js index 72addf9198..84df313103 100644 --- a/charts/kubedbcom-postgres-editor-options/ui/functions.js +++ b/charts/kubedbcom-postgres-editor-options/ui/functions.js @@ -1043,14 +1043,14 @@ export const useFunc = (model) => { let archiverMap = [] let archiverCalled = false - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') if (type === 'storageClasses' && !archiverCalled) { getArchiverName() } - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) } diff --git a/charts/kubedbcom-proxysql-editor-options/ui/functions.js b/charts/kubedbcom-proxysql-editor-options/ui/functions.js index cff140b13a..d8aa0829f3 100644 --- a/charts/kubedbcom-proxysql-editor-options/ui/functions.js +++ b/charts/kubedbcom-proxysql-editor-options/ui/functions.js @@ -1040,10 +1040,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-rabbitmq-editor-options/ui/functions.js b/charts/kubedbcom-rabbitmq-editor-options/ui/functions.js index 9924642428..bf34b61d0d 100644 --- a/charts/kubedbcom-rabbitmq-editor-options/ui/functions.js +++ b/charts/kubedbcom-rabbitmq-editor-options/ui/functions.js @@ -964,10 +964,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-redis-editor-options/ui/functions.js b/charts/kubedbcom-redis-editor-options/ui/functions.js index b4d97638ea..bf15fc9d10 100644 --- a/charts/kubedbcom-redis-editor-options/ui/functions.js +++ b/charts/kubedbcom-redis-editor-options/ui/functions.js @@ -487,10 +487,10 @@ export const useFunc = (model) => { } else return filteredlist } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-singlestore-editor-options/ui/functions.js b/charts/kubedbcom-singlestore-editor-options/ui/functions.js index a3a9fe4111..0066338394 100644 --- a/charts/kubedbcom-singlestore-editor-options/ui/functions.js +++ b/charts/kubedbcom-singlestore-editor-options/ui/functions.js @@ -1223,10 +1223,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-solr-editor-options/ui/functions.js b/charts/kubedbcom-solr-editor-options/ui/functions.js index b1d126fb38..1b1d407d4a 100644 --- a/charts/kubedbcom-solr-editor-options/ui/functions.js +++ b/charts/kubedbcom-solr-editor-options/ui/functions.js @@ -1013,10 +1013,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type) diff --git a/charts/kubedbcom-zookeeper-editor-options/ui/functions.js b/charts/kubedbcom-zookeeper-editor-options/ui/functions.js index df79a9bd0e..6fcf0bde0e 100644 --- a/charts/kubedbcom-zookeeper-editor-options/ui/functions.js +++ b/charts/kubedbcom-zookeeper-editor-options/ui/functions.js @@ -958,10 +958,10 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + async function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') - const options = getValue(model, `/spec/admin/${type}/available`) || [] + const options = (await getValue(model, `/spec/admin/${type}/available`)) || [] if (options.length === 0) { return fetchOptions(type)