Skip to content

Commit

Permalink
AB#1115 Correct some issues with BoardDashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
gjvoosten committed Jul 3, 2024
1 parent 3935664 commit 7171a1c
Showing 1 changed file with 6 additions and 3 deletions.
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

0 comments on commit 7171a1c

Please sign in to comment.