From 6c583b468b20df709f3920603fe8e5ae498f3d10 Mon Sep 17 00:00:00 2001 From: Oliver Stolpe Date: Wed, 1 Nov 2023 14:42:19 +0100 Subject: [PATCH] Reformatting --- svs/vueapp/src/stores/svResultSet.ts | 5 ++--- variants/vueapp/src/stores/queryPresets.ts | 10 ++++------ variants/vueapp/src/stores/variantResultSet.ts | 15 ++++++--------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/svs/vueapp/src/stores/svResultSet.ts b/svs/vueapp/src/stores/svResultSet.ts index 8194af24b..047bb0c26 100644 --- a/svs/vueapp/src/stores/svResultSet.ts +++ b/svs/vueapp/src/stores/svResultSet.ts @@ -80,9 +80,8 @@ export const useSvResultSetStore = defineStore('svResultSet', () => { const loadResultSetViaQuery = async (queryUuid$: string) => { // Once query is finished, load results, if still for the same query. const svClient = new SvClient(csrfToken.value) - const responseResultSetList = await svClient.listSvQueryResultSet( - queryUuid$, - ) + const responseResultSetList = + await svClient.listSvQueryResultSet(queryUuid$) if (!responseResultSetList.length) { console.error('ERROR: no results in response') } else { diff --git a/variants/vueapp/src/stores/queryPresets.ts b/variants/vueapp/src/stores/queryPresets.ts index 96323e369..963e5bfe2 100644 --- a/variants/vueapp/src/stores/queryPresets.ts +++ b/variants/vueapp/src/stores/queryPresets.ts @@ -223,9 +223,8 @@ export const useQueryPresetsStore = defineStore('queryPresets', () => { let revertedPresetSet: PresetSet try { - revertedPresetSet = await queryPresetsClient.retrievePresetSet( - presetSetUuid, - ) + revertedPresetSet = + await queryPresetsClient.retrievePresetSet(presetSetUuid) presetSets.value[presetSetUuid] = revertedPresetSet storeState.value.state = oldState @@ -390,9 +389,8 @@ export const useQueryPresetsStore = defineStore('queryPresets', () => { let revertedPresets: any try { - revertedPresets = await queryPresetsClient[`retrieve${cat.name}`]( - presetUuid, - ) + revertedPresets = + await queryPresetsClient[`retrieve${cat.name}`](presetUuid) const presetsSet = presetSets.value[presetSetUuid][`${category}_set`] for (let i = 0; i < presetsSet.length; i++) { if (presetsSet[i].sodar_uuid === presetUuid) { diff --git a/variants/vueapp/src/stores/variantResultSet.ts b/variants/vueapp/src/stores/variantResultSet.ts index 83eddfab1..21204eacd 100644 --- a/variants/vueapp/src/stores/variantResultSet.ts +++ b/variants/vueapp/src/stores/variantResultSet.ts @@ -126,9 +126,8 @@ export const useVariantResultSetStore = defineStore('variantResultSet', () => { const loadResultSetViaQuery = async (queryUuid$: string) => { // Once query is finished, load results, if still for the same query. const variantClient = new VariantClient(csrfToken.value) - const responseResultSetList = await variantClient.listQueryResultSet( - queryUuid$, - ) + const responseResultSetList = + await variantClient.listQueryResultSet(queryUuid$) if (!responseResultSetList.length) { console.error('ERROR: no results in response') } else { @@ -167,13 +166,11 @@ export const useVariantResultSetStore = defineStore('variantResultSet', () => { storeState.serverInteractions += 1 try { - const resultRow$ = await variantClient.retrieveQueryResultRow( - resultRowUuid, - ) + const resultRow$ = + await variantClient.retrieveQueryResultRow(resultRowUuid) const resultSetUuid$ = resultRow$.smallvariantqueryresultset - const resultSet$ = await variantClient.retrieveQueryResultSet( - resultSetUuid$, - ) + const resultSet$ = + await variantClient.retrieveQueryResultSet(resultSetUuid$) if (resultSet$.smallvariantquery) { // The result set belongs to a query so we retrieve it and get the case UUID