From 65e725289fb31721fa0e767f6d1bf9d1acf3d970 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 27 Oct 2021 22:29:41 +0200 Subject: [PATCH] Bug Fixed Crashing Governance --- .../UI/Spaces/Floating-Space/CircularMenuItem.js | 7 ++++--- Projects/Governance/Plugins/Positions/Superalgos.json | 4 ++-- .../Plugins/User-Profiles/Luis-Fernando-Molina.json | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js b/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js index f01dcfd1b..83c74606f 100644 --- a/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js +++ b/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js @@ -122,7 +122,7 @@ function newCircularMenuItem() { containerPhysics() - if(thisObject.booleanProperty !== undefined) { + if (thisObject.booleanProperty !== undefined) { let config = JSON.parse(thisObject.payload.node.config) if (config[thisObject.booleanProperty] === true) { @@ -277,7 +277,7 @@ function newCircularMenuItem() { temporaryStatus === STATUS_SECONDARY_WORK_FAILED ) && thisObject.secondaryAction !== undefined ) { - if(thisObject.iconProject !== undefined) { + if (thisObject.iconProject !== undefined) { thisObject.iconOn = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(thisObject.iconProject, thisObject.secondaryIcon) thisObject.iconOff = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(thisObject.iconProject, thisObject.secondaryIcon) } else { @@ -352,6 +352,7 @@ function newCircularMenuItem() { } function internalClick() { + if (thisObject.payload === undefined) { return } if (thisObject.shorcutNumber !== undefined) { let label = thisObject.payload.node.name + ' ' + labelToPrint UI.projects.foundations.spaces.cockpitSpace.setStatus(label, 4, UI.projects.foundations.spaces.cockpitSpace.statusTypes.ALL_GOOD) @@ -399,7 +400,7 @@ function newCircularMenuItem() { let relatedNodeProject = thisObject.actionProject if (thisObject.relatedUiObjectProject !== undefined) { relatedNodeProject = thisObject.relatedUiObjectProject - } + } thisObject.actionFunction( { diff --git a/Projects/Governance/Plugins/Positions/Superalgos.json b/Projects/Governance/Plugins/Positions/Superalgos.json index b3581e790..1162570fa 100644 --- a/Projects/Governance/Plugins/Positions/Superalgos.json +++ b/Projects/Governance/Plugins/Positions/Superalgos.json @@ -2209,7 +2209,7 @@ }, { "type": "Position", - "name": "3 Team Members : EvaMaria70 gitforkgit e-Nut", + "name": "4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart", "config": "{}", "project": "Governance", "positions": [], @@ -2367,7 +2367,7 @@ "floatingObject": { "isPinned": false, "isFrozen": false, - "isCollapsed": true, + "isCollapsed": false, "angleToParent": 1, "distanceToParent": 3, "arrangementStyle": 0 diff --git a/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json b/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json index a8d078a60..aafe7d921 100644 --- a/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json +++ b/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json @@ -8941,7 +8941,7 @@ }, { "type": "Position Weight Vote", - "name": "Translations Team 3 Team Members : EvaMaria70 gitforkgit e-Nut", + "name": "Translations Team 4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart", "config": "{}", "project": "Governance", "id": "9ea19d52-7f2b-4723-aa38-e2844a9150d4", @@ -8967,7 +8967,7 @@ }, "referenceParent": { "type": "Position", - "name": "3 Team Members : EvaMaria70 gitforkgit e-Nut", + "name": "4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart", "id": "6ed65be6-de6f-49a1-9c04-d2114e8763a1" }, "referenceParentCombinedNodePath": [ @@ -8996,7 +8996,7 @@ "0cd21223-d49a-45b1-af83-ec2a31f8caaf" ], [ - "3 Team Members : EvaMaria70 gitforkgit e-Nut", + "4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart", "Position", "Governance", "6ed65be6-de6f-49a1-9c04-d2114e8763a1"