Fix "repair failed"
In a showplan with nothing in column 0 or 1 that is corrupt (has non-consecutive item weights), the repair code would generate invalid operations, because it used the index of the channel it was repairing rather than the correct channel number.
This commit is contained in:
parent
fecbfc79c3
commit
c391ecc7fa
1 changed files with 2 additions and 2 deletions
|
@ -551,8 +551,8 @@ export const getShowplan = (timeslotId: number): AppThunk => async (
|
|||
ops.push({
|
||||
op: "MoveItem",
|
||||
timeslotitemid: item.timeslotitemid,
|
||||
oldchannel: colIndex,
|
||||
channel: colIndex,
|
||||
oldchannel: item.channel,
|
||||
channel: item.channel,
|
||||
oldweight: item.weight,
|
||||
weight: itemIndex,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue