Skip to content

Commit

Permalink
fix: resolve issue with sv quick preset initialization (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Jul 6, 2023
1 parent 8e06709 commit 864029a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions variants/vueapp/src/components/FilterFormQuickPresets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ const quickPresetRef = ref(null)
/** Refresh quick presets from actual form values. Check each for compatibility and pick first matching. */
const refreshQuickPreset = () => {
if (!props.quickPresets) {
// skip if none are there yet
return
}
for (const [name, theQuickPresets] of Object.entries(props.quickPresets)) {
if (
inheritanceWrapper.value === theQuickPresets.inheritance &&
Expand Down
1 change: 0 additions & 1 deletion variants/vueapp/src/stores/filterQuery.funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export function previousQueryDetailsToQuerySettings(
caseObj,
previousQueryDetails
) {
console.log(previousQueryDetails)
const freqKeys = [
'exac_enabled',
'exac_frequency',
Expand Down
2 changes: 1 addition & 1 deletion variants/vueapp/src/stores/filterQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export const useFilterQueryStore = defineStore('filterQuery', () => {
queryUuid
)
if (!responseResultSetList.length) {
console.log('ERROR: no results in response')
console.error('ERROR: no results in response')
} else if (
queryState.value === QueryStates.Fetching.value &&
previousQueryDetails.value.sodar_uuid === queryUuid
Expand Down

0 comments on commit 864029a

Please sign in to comment.