We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7eaa4c commit 89acdf5Copy full SHA for 89acdf5
src/features/modals/NodeModal/index.tsx
@@ -22,7 +22,8 @@ const normalizeNodeData = (nodeRows: NodeData["text"]) => {
22
// return json path in the format $["customer"]
23
const jsonPathToString = (path?: NodeData["path"]) => {
24
if (!path || path.length === 0) return "$";
25
- return `$["${path.join('"]["')}"]`;
+ const segments = path.map(seg => (typeof seg === "number" ? seg : `"${seg}"`));
26
+ return `$[${segments.join("][")}]`;
27
};
28
29
export const NodeModal = ({ opened, onClose }: ModalProps) => {
0 commit comments