Skip to content

Commit 6e948ed

Browse files
authored
Merge pull request #266 from code0-tech/feat/updating-triangulum
Updating triangulum
2 parents 553ccce + a181a61 commit 6e948ed

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

.env.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SAGITTARIUS_GRAPHQL_URL=http://localhost:80/graphql
55
SAGITTARIUS_CABLE_URL=http://localhost:80/cable
66

77
NEXT_PUBLIC_SCULPTOR_VERSION=0.0.0
8-
NEXT_PUBLIC_PICTOR_VERSION=0.10.6
8+
NEXT_PUBLIC_PICTOR_VERSION=0.10.7
99
NEXT_PUBLIC_ALLOWED_REDIRECT_DOMAINS=*.code0.tech,*.codezero.build
1010

1111
NEXT_PUBLIC_OTEL_SERVICE_NAME=#"sculptor-client"

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@apollo/client": "^4.0.9",
1818
"@code0-tech/pictor": "^0.10.7",
19-
"@code0-tech/triangulum": "^0.25.3",
19+
"@code0-tech/triangulum": "^0.25.4",
2020
"@codemirror/lang-javascript": "^6.2.5",
2121
"@codemirror/lint": "^6.9.5",
2222
"@icons-pack/react-simple-icons": "^13.13.0",

src/packages/ce/src/datatype/components/inputs/DataTypeInputComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const DataTypeInputComponent: React.FC<DataTypeInputComponentProps> = (pr
3232
const {schema, ...rest} = props
3333

3434
const suggestions = "schema" in (schema ?? {}) ? (schema as NodeSchema)?.schema?.suggestions as (NodeFunction | ReferenceValue | LiteralValue)[] : []
35-
const inputName = "schema" in (schema ?? {}) ? ((schema as NodeSchema)?.schema?.input === "generic" ? (schema as NodeSchema).functionSchema.input : (schema as NodeSchema)?.schema?.input) : (schema as Schema).input
35+
const inputName = "schema" in (schema ?? {}) ? (schema as NodeSchema)?.schema?.input : (schema as Schema).input
3636

3737
if ("schema" in (schema ?? {}) && ((schema as NodeSchema).blockedBy?.length ?? 0) > 0) {
3838
return null

src/packages/ce/src/datatype/components/inputs/json/DataTypeJSONInputComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ export const DataTypeJSONInputComponent: React.FC<DataTypeJSONInputComponentProp
3232
}, 200)
3333

3434
const value = React.useMemo(
35-
() => initialValue ?? (("functionSchema" in schema ? schema.functionSchema.input === "list" : schema.input === "list") ? {
35+
() => initialValue ?? (("schema" in schema ? schema.schema.input === "list" : schema.input === "list") ? {
3636
__typename: "LiteralValue",
3737
value: []
38-
} as LiteralValue : generateDefaultDataValue("functionSchema" in schema ? schema.functionSchema as DataInput : schema as DataInput)),
38+
} as LiteralValue : generateDefaultDataValue("schema" in schema ? schema.schema as DataInput : schema as DataInput)),
3939
[initialValue, schema]
4040
)
4141

0 commit comments

Comments
 (0)