mirror of https://github.com/tooot-app/app
Try to fix weird crash
This commit is contained in:
parent
8fbe5d2cad
commit
911a4e02ee
|
@ -169,10 +169,11 @@ const instancesSlice = createSlice({
|
|||
action: PayloadAction<Instance['timelinesLookback']>
|
||||
) => {
|
||||
const activeIndex = findInstanceActive(instances)
|
||||
instances[activeIndex].timelinesLookback = {
|
||||
...instances[activeIndex].timelinesLookback,
|
||||
...action.payload
|
||||
}
|
||||
instances[activeIndex] &&
|
||||
(instances[activeIndex].timelinesLookback = {
|
||||
...instances[activeIndex].timelinesLookback,
|
||||
...action.payload
|
||||
})
|
||||
},
|
||||
updateInstanceMePage: (
|
||||
{ instances },
|
||||
|
|
Loading…
Reference in New Issue