fix check in put and output
This commit is contained in:
1 parent
8357b0621c
commit
5adc34dc12
3 files changed
+5
-5
No files matched your search
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "behavior3editor",
|
||||
"version": "1.8.10",
|
||||
"version": "1.8.11",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "behavior3editor",
|
||||
"version": "1.8.10",
|
||||
"version": "1.8.11",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "behavior3editor",
|
||||
"version": "1.8.10",
|
||||
"version": "1.8.11",
|
||||
"main": "dist-electron/main/index.js",
|
||||
"description": "行为树编辑器",
|
||||
"author": "zhandouxiaojiji & codetypes",
|
||||
|
||||
@@ -677,7 +677,7 @@ const NodeInspector: FC = () => {
|
||||
node.input?.forEach((v, i) => {
|
||||
let desc: string;
|
||||
const inputDef = def.input;
|
||||
if (inputDef && i >= inputDef.length && isVariadic(inputDef, -1)) {
|
||||
if (inputDef?.length && i >= inputDef.length && isVariadic(inputDef, -1)) {
|
||||
desc = inputDef[inputDef.length - 1];
|
||||
} else {
|
||||
desc = inputDef?.[i] ?? "<unknown>";
|
||||
@@ -690,7 +690,7 @@ const NodeInspector: FC = () => {
|
||||
node.output?.forEach((v, i) => {
|
||||
let desc: string;
|
||||
const outputDef = def.output;
|
||||
if (outputDef && i >= outputDef.length && isVariadic(outputDef, -1)) {
|
||||
if (outputDef?.length && i >= outputDef.length && isVariadic(outputDef, -1)) {
|
||||
desc = outputDef[outputDef.length - 1];
|
||||
} else {
|
||||
desc = outputDef?.[i] ?? "<unknown>";
|
||||
|
||||
Reference in new issue
Block a user