зеркало из https://github.com/Azure/Sia-EventUI.git
in progress (#146)
This commit is contained in:
Родитель
c5ccc24907
Коммит
ee4ce00960
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -47,7 +47,7 @@ export const mapStateToEventCardProps = (state, ownProps) => {
|
||||||
const { event, ticketId } = ownProps
|
const { event, ticketId } = ownProps
|
||||||
const eventType = state.eventTypes.records[event.eventTypeId]
|
const eventType = state.eventTypes.records[event.eventTypeId]
|
||||||
const ticket = state.tickets.map[ticketId]
|
const ticket = state.tickets.map[ticketId]
|
||||||
const IconType = Icons[eventType.icon]
|
const IconType = eventType ? Icons[eventType.icon] : null
|
||||||
|
|
||||||
return {
|
return {
|
||||||
event,
|
event,
|
||||||
|
|
|
@ -44,7 +44,7 @@ export const mapStateToDisplayPlaybookProps = (state, ownProps) => {
|
||||||
const event = Object.values(state.events.pages.list)
|
const event = Object.values(state.events.pages.list)
|
||||||
.find(event => event.id === eventId)
|
.find(event => event.id === eventId)
|
||||||
const ticket = state.tickets.map[ticketId]
|
const ticket = state.tickets.map[ticketId]
|
||||||
const actions = eventType.actions
|
const actions = eventType ? eventType.actions : []
|
||||||
const populatedConditionSetTest = TestConditionSet(event, ticket, eventType)
|
const populatedConditionSetTest = TestConditionSet(event, ticket, eventType)
|
||||||
const qualifiedActions = actions.filter(
|
const qualifiedActions = actions.filter(
|
||||||
action => action.conditionSets.reduce(
|
action => action.conditionSets.reduce(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче