File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,14 @@ export function toQueryView(params: FunctionProperty[]) {
34
34
Object . keys ( props . variables )
35
35
. filter ( k => k !== "$queryName" )
36
36
. forEach ( key => {
37
+ const value = Object . hasOwn ( props . variables [ key ] , 'value' ) ? props . variables [ key ] . value : props . variables [ key ] ;
37
38
mappedVariables . push ( {
38
39
key : `${ key } .value` ,
39
- value : props . variables [ key ] || ""
40
+ value : value || ""
40
41
} )
41
42
mappedVariables . push ( {
42
43
key : `${ props . args ?. $queryName } .variables.${ key } ` ,
43
- value : props . variables [ key ] || ""
44
+ value : value || ""
44
45
} )
45
46
} )
46
47
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import dynamicImport from 'vite-plugin-dynamic-import';
12
12
import { ensureLastSlash } from "./src/dev-utils/util" ;
13
13
import { buildVars } from "./src/dev-utils/buildVars" ;
14
14
import { globalDepPlugin } from "./src/dev-utils/globalDepPlguin" ;
15
- import { terser } from 'rollup-plugin-terser' ;
15
+ import { terser } from 'rollup-plugin-terser' ;
16
16
// import { nodePolyfills } from 'vite-plugin-node-polyfills'
17
17
18
18
dotenv . config ( ) ;
@@ -87,6 +87,7 @@ export const viteConfig: UserConfig = {
87
87
manualChunks : ( id ) => {
88
88
if ( id . includes ( "node_modules" ) ) {
89
89
// UI LIBRARIES
90
+ // if (id.includes("node_modules/@ant-design/v5-patch-for-react-19")) return "ant-design-v5-patch";
90
91
if ( id . includes ( "@ant-design/icons" ) ) return "ant-design-icons" ;
91
92
if ( id . includes ( "node_modules/antd" ) ) return "antd" ;
92
93
if ( id . includes ( "styled-components" ) ) return "styled-components" ;
You can’t perform that action at this time.
0 commit comments