mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
only prefix arrays
This commit is contained in:
parent
20cd0ebefb
commit
85fb7584d0
|
@ -894,7 +894,7 @@ exports[`RunDataSchema.vue > renders schema with spaces and dots 1`] = `
|
|||
<div
|
||||
class="pill"
|
||||
data-depth="1"
|
||||
data-name="0[test]"
|
||||
data-name="test"
|
||||
data-nest-level="3"
|
||||
data-node-type="n8n-nodes-base.set"
|
||||
data-path="['hello world'][0].test"
|
||||
|
@ -932,7 +932,7 @@ exports[`RunDataSchema.vue > renders schema with spaces and dots 1`] = `
|
|||
|
||||
<span>
|
||||
<!--v-if-->
|
||||
0[test]
|
||||
test
|
||||
</span>
|
||||
|
||||
</span>
|
||||
|
@ -963,7 +963,7 @@ exports[`RunDataSchema.vue > renders schema with spaces and dots 1`] = `
|
|||
<div
|
||||
class="pill"
|
||||
data-depth="1"
|
||||
data-name="test[more to think about]"
|
||||
data-name="more to think about"
|
||||
data-nest-level="4"
|
||||
data-node-type="n8n-nodes-base.set"
|
||||
data-path="['hello world'][0].test['more to think about']"
|
||||
|
@ -1001,7 +1001,7 @@ exports[`RunDataSchema.vue > renders schema with spaces and dots 1`] = `
|
|||
|
||||
<span>
|
||||
<!--v-if-->
|
||||
test[more to think about]
|
||||
more to think about
|
||||
</span>
|
||||
|
||||
</span>
|
||||
|
@ -1037,7 +1037,7 @@ exports[`RunDataSchema.vue > renders schema with spaces and dots 1`] = `
|
|||
<div
|
||||
class="pill"
|
||||
data-depth="1"
|
||||
data-name="0[test.how]"
|
||||
data-name="test.how"
|
||||
data-nest-level="3"
|
||||
data-node-type="n8n-nodes-base.set"
|
||||
data-path="['hello world'][0]['test.how']"
|
||||
|
@ -1075,7 +1075,7 @@ exports[`RunDataSchema.vue > renders schema with spaces and dots 1`] = `
|
|||
|
||||
<span>
|
||||
<!--v-if-->
|
||||
0[test.how]
|
||||
test.how
|
||||
</span>
|
||||
|
||||
</span>
|
||||
|
|
|
@ -297,7 +297,7 @@ export const useFlattenSchema = () => {
|
|||
return items.concat(
|
||||
schema.value
|
||||
.map((item) => {
|
||||
const itemPrefix = ['array', 'object'].includes(schema.type) ? schema.key : '';
|
||||
const itemPrefix = schema.type === 'array' ? schema.key : '';
|
||||
return flattenSchema({
|
||||
schema: item,
|
||||
node,
|
||||
|
|
Loading…
Reference in a new issue