Skip to content

Commit

Permalink
fix(ast): system is passed to query and ast
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsJohansen87 committed Oct 2, 2024
1 parent 09cad9a commit ef9ff0d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
14 changes: 14 additions & 0 deletions packages/demo/src/AppCCP.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,22 @@
);
let dataPasser: LensDataPasser;
const getQuery = (): void => {
console.log("QueryStore:", dataPasser.getQueryAPI());
};
const getAST = (): void => {
console.log("AST:", dataPasser.getAstAPI());
};
</script>

<button
on:click={() => {
getQuery();
getAST();
}}>query</button
>
<header>
<div class="header-wrapper">
<div class="logo">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
name: element.name,
key: element.key,
type: "type" in element && element.type,
system: "system" in element ? element.system : "",
values: [
{
value: inputItem.key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
key: element.key,
name: element.name,
type: "type" in element && element.type,
system: "system" in element ? element.system : "",
values: [
{
name: criterion.name,
value: 'aggregatedValue' in criterion ? criterion.aggregatedValue : criterion.key,
value:
"aggregatedValue" in criterion
? criterion.aggregatedValue
: criterion.key,
queryBindId: queryBindId,
},
],
Expand All @@ -30,6 +34,4 @@
{criterion.name}
</span>
</div>
<QueryAddButtonComponent
queryItem={queryItem}
/>
<QueryAddButtonComponent {queryItem} />

0 comments on commit ef9ff0d

Please sign in to comment.