Skip to content

Commit

Permalink
Merge pull request #4849 from NCI-Agency/AB-1115-fix-process-board
Browse files Browse the repository at this point in the history
Fix process board
  • Loading branch information
gjvoosten committed Jul 4, 2024
2 parents 4ac0955 + 7171a1c commit d4fdfd6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@
"yup": "1.4.0"
},
"resolutions": {
"chromedriver": "link:./node_modules/.cache/null"
"chromedriver": "link:./node_modules/.cache/null",
"react": "18.2.0"
},
"packageManager": "yarn@4.3.1",
"scripts": {
Expand Down
9 changes: 6 additions & 3 deletions client/src/pages/dashboards/BoardDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import {
SelectionBoxLayerFactory
} from "@projectstorm/react-diagrams"
import { DEFAULT_PAGE_PROPS } from "actions"
import MultiTypeAdvancedSelectComponent from "components/advancedSelectWidget/MultiTypeAdvancedSelectComponent"
import MultiTypeAdvancedSelectComponent, {
ALL_ENTITY_TYPES
} from "components/advancedSelectWidget/MultiTypeAdvancedSelectComponent"
import LinkTo from "components/LinkTo"
import {
mapPageDispatchersToProps,
Expand Down Expand Up @@ -65,7 +67,7 @@ const createEngine = options => {
}

const PrototypeNode = ({ name, model, onClick }) => (
<Badge style={{ margin: 10, background: "white", color: "#106ba3" }}>
<Badge style={{ margin: 10 }}>
<div
draggable
onClick={onClick}
Expand Down Expand Up @@ -281,7 +283,7 @@ const BoardDashboard = ({ pageDispatchers }) => {
const instance = new Model()
const modelName = instance.constructor.resourceName
return (
instance.iconUrl() && (
instance.iconUrl && (
<PrototypeNode
key={`palette-${modelName}`}
model={instance}
Expand Down Expand Up @@ -340,6 +342,7 @@ const BoardDashboard = ({ pageDispatchers }) => {
setSelectingEntity(false)
}}
objectType={editedNode?.options.anetObjectType}
entityTypes={ALL_ENTITY_TYPES}
/>
</Modal.Body>
</Modal>
Expand Down
9 changes: 0 additions & 9 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17079,15 +17079,6 @@ __metadata:
languageName: node
linkType: hard

"react@npm:^18.2.0":
version: 18.3.1
resolution: "react@npm:18.3.1"
dependencies:
loose-envify: "npm:^1.1.0"
checksum: 10c0/283e8c5efcf37802c9d1ce767f302dd569dd97a70d9bb8c7be79a789b9902451e0d16334b05d73299b20f048cbc3c7d288bbbde10b701fa194e2089c237dbea3
languageName: node
linkType: hard

"read-pkg-up@npm:10.0.0":
version: 10.0.0
resolution: "read-pkg-up@npm:10.0.0"
Expand Down

0 comments on commit d4fdfd6

Please sign in to comment.