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",
|
"name": "behavior3editor",
|
||||||
"version": "1.8.10",
|
"version": "1.8.11",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "behavior3editor",
|
"name": "behavior3editor",
|
||||||
"version": "1.8.10",
|
"version": "1.8.11",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "behavior3editor",
|
"name": "behavior3editor",
|
||||||
"version": "1.8.10",
|
"version": "1.8.11",
|
||||||
"main": "dist-electron/main/index.js",
|
"main": "dist-electron/main/index.js",
|
||||||
"description": "行为树编辑器",
|
"description": "行为树编辑器",
|
||||||
"author": "zhandouxiaojiji & codetypes",
|
"author": "zhandouxiaojiji & codetypes",
|
||||||
|
|||||||
@@ -677,7 +677,7 @@ const NodeInspector: FC = () => {
|
|||||||
node.input?.forEach((v, i) => {
|
node.input?.forEach((v, i) => {
|
||||||
let desc: string;
|
let desc: string;
|
||||||
const inputDef = def.input;
|
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];
|
desc = inputDef[inputDef.length - 1];
|
||||||
} else {
|
} else {
|
||||||
desc = inputDef?.[i] ?? "<unknown>";
|
desc = inputDef?.[i] ?? "<unknown>";
|
||||||
@@ -690,7 +690,7 @@ const NodeInspector: FC = () => {
|
|||||||
node.output?.forEach((v, i) => {
|
node.output?.forEach((v, i) => {
|
||||||
let desc: string;
|
let desc: string;
|
||||||
const outputDef = def.output;
|
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];
|
desc = outputDef[outputDef.length - 1];
|
||||||
} else {
|
} else {
|
||||||
desc = outputDef?.[i] ?? "<unknown>";
|
desc = outputDef?.[i] ?? "<unknown>";
|
||||||
|
|||||||
Reference in new issue
Block a user