parent
10b14abcdb
commit
6e0f2ef6bb
|
@ -147,7 +147,11 @@ export async function showMoreItemsForThread (instanceName, timelineName) {
|
||||||
let itemIdsToAdd = store.getForTimeline(instanceName, timelineName, 'itemIdsToAdd')
|
let itemIdsToAdd = store.getForTimeline(instanceName, timelineName, 'itemIdsToAdd')
|
||||||
let timelineItemIds = store.getForTimeline(instanceName, timelineName, 'timelineItemIds')
|
let timelineItemIds = store.getForTimeline(instanceName, timelineName, 'timelineItemIds')
|
||||||
// TODO: update database and do the thread merge correctly
|
// TODO: update database and do the thread merge correctly
|
||||||
timelineItemIds = timelineItemIds.concat(itemIdsToAdd)
|
for (let itemIdToAdd of itemIdsToAdd) {
|
||||||
|
if (!timelineItemIds.includes(itemIdToAdd)) {
|
||||||
|
timelineItemIds.push(itemIdToAdd)
|
||||||
|
}
|
||||||
|
}
|
||||||
store.setForTimeline(instanceName, timelineName, {
|
store.setForTimeline(instanceName, timelineName, {
|
||||||
itemIdsToAdd: [],
|
itemIdsToAdd: [],
|
||||||
timelineItemIds: timelineItemIds
|
timelineItemIds: timelineItemIds
|
||||||
|
|
Loading…
Reference in New Issue