Skip to content

Commit

Permalink
fix: issue#174 - criteria from autocompleteComponent are now added to…
Browse files Browse the repository at this point in the history
… correct subquery
  • Loading branch information
thkoehler11 committed Jan 27, 2025
1 parent a994a36 commit fc1d1cf
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<script lang="ts">
import type { Category, Criteria } from "../../types/treeData";
import { v4 as uuidv4 } from "uuid";
import { addItemToQuery, queryStore } from "../../stores/query";
import {
activeQueryGroupIndex,
addItemToQuery,
queryStore,
} from "../../stores/query";
import type { QueryItem, QueryValue } from "../../types/queryData";
import AutoCompleteCriterionComponent from "./AutoCompleteCriterionComponent.svelte";
import { onMount } from "svelte";
Expand Down Expand Up @@ -118,7 +122,7 @@
*/
const addInputValueToStore = (
inputItem: Criteria,
indexOfChosenStore: number = 0,
indexOfChosenStore: number = $activeQueryGroupIndex,
): void => {
/**
* check if option is allready present in the query store
Expand Down

0 comments on commit fc1d1cf

Please sign in to comment.