File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useEffect } from "react" ;
2
2
import { get } from "lodash" ;
3
3
import { Heading , Box , HStack } from "@chakra-ui/react" ;
4
- import jsonnata from "jsonata" ;
4
+ import jsonata from "jsonata" ;
5
5
6
6
import RgbaField from "./Fields/RgbaField" ;
7
7
import ImageField from "./Fields/ImageField" ;
@@ -42,7 +42,7 @@ export async function getProcessedField(
42
42
value = def . value ;
43
43
} else {
44
44
if ( isFeatureEnabled ( "jsonata" ) ) {
45
- const expression = jsonnata ( def . property ) ;
45
+ const expression = jsonata ( def . property ) ;
46
46
value = await expression . evaluate ( data ) ;
47
47
} else {
48
48
value = get ( data , def . property ) ;
@@ -85,7 +85,6 @@ export const Field = ({
85
85
86
86
useEffect ( ( ) => {
87
87
getProcessedField ( field , gmeta ) . then ( ( result ) => {
88
- console . log ( result ) ;
89
88
setProcessedField ( result ) ;
90
89
} ) ;
91
90
} , [ field , gmeta ] ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export type Data = {
51
51
* Enable JSONata support for processing the `static.json` file.
52
52
* @see https://jsonata.org/
53
53
*/
54
- jsonnata ?: boolean ;
54
+ jsonata ?: boolean ;
55
55
authentication ?: boolean ;
56
56
} ;
57
57
You can’t perform that action at this time.
0 commit comments