Updated StatusList keys and promotion implementation
• Updated: - StatusList keys and promotion implementation
This commit is contained in:
parent
1c1bfabb17
commit
270a3dee15
@ -260,11 +260,11 @@ class StatusList extends ImmutablePureComponent {
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
if (Array.isArray(promotions)) {
|
if (Array.isArray(promotions)) {
|
||||||
const promotionBlock = promotions.find(p => p.position === i)
|
const promotionBlock = promotions.find(p => (p.position === i && p.timeline_id === timelineId))
|
||||||
if (promotionBlock) {
|
if (promotionBlock) {
|
||||||
scrollableContent.push(
|
scrollableContent.push(
|
||||||
<StatusContainer
|
<StatusContainer
|
||||||
key={promotionBlock.status_id}
|
key={`promotion-${i}-${promotionBlock.status_id}`}
|
||||||
id={promotionBlock.status_id}
|
id={promotionBlock.status_id}
|
||||||
onMoveUp={this.handleMoveUp}
|
onMoveUp={this.handleMoveUp}
|
||||||
onMoveDown={this.handleMoveDown}
|
onMoveDown={this.handleMoveDown}
|
||||||
@ -277,7 +277,7 @@ class StatusList extends ImmutablePureComponent {
|
|||||||
}
|
}
|
||||||
scrollableContent.push(
|
scrollableContent.push(
|
||||||
<StatusContainer
|
<StatusContainer
|
||||||
key={statusId}
|
key={`${statusId}-${i}`}
|
||||||
id={statusId}
|
id={statusId}
|
||||||
onMoveUp={this.handleMoveUp}
|
onMoveUp={this.handleMoveUp}
|
||||||
onMoveDown={this.handleMoveDown}
|
onMoveDown={this.handleMoveDown}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user