Skip to content

Commit 21eb5cb

Browse files
committed
fix: proper reference to jsonata feature configuration
1 parent 478981d commit 21eb5cb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/Field.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect } from "react";
22
import { get } from "lodash";
33
import { Heading, Box, HStack } from "@chakra-ui/react";
4-
import jsonnata from "jsonata";
4+
import jsonata from "jsonata";
55

66
import RgbaField from "./Fields/RgbaField";
77
import ImageField from "./Fields/ImageField";
@@ -42,7 +42,7 @@ export async function getProcessedField(
4242
value = def.value;
4343
} else {
4444
if (isFeatureEnabled("jsonata")) {
45-
const expression = jsonnata(def.property);
45+
const expression = jsonata(def.property);
4646
value = await expression.evaluate(data);
4747
} else {
4848
value = get(data, def.property);
@@ -85,7 +85,6 @@ export const Field = ({
8585

8686
useEffect(() => {
8787
getProcessedField(field, gmeta).then((result) => {
88-
console.log(result);
8988
setProcessedField(result);
9089
});
9190
}, [field, gmeta]);

static.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export type Data = {
5151
* Enable JSONata support for processing the `static.json` file.
5252
* @see https://jsonata.org/
5353
*/
54-
jsonnata?: boolean;
54+
jsonata?: boolean;
5555
authentication?: boolean;
5656
};
5757

0 commit comments

Comments
 (0)