Skip to content

Commit

Permalink
Reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Nov 1, 2023
1 parent 17094ef commit 6c583b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
5 changes: 2 additions & 3 deletions svs/vueapp/src/stores/svResultSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 4 additions & 6 deletions variants/vueapp/src/stores/queryPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
15 changes: 6 additions & 9 deletions variants/vueapp/src/stores/variantResultSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c583b4

Please sign in to comment.