mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-04-05 00:32:05 -04:00
Fix: handle undefined IDs in getOriginalObject (#11147)
This commit is contained in:
parent
91e2220f23
commit
0fc595a16a
@ -146,7 +146,7 @@ export abstract class ManagementListComponent<T extends MatchingModel>
|
||||
}
|
||||
|
||||
public getOriginalObject(object: T): T {
|
||||
return this.unfilteredData.find((d) => d.id == object.id)
|
||||
return this.unfilteredData.find((d) => d?.id == object?.id) || object
|
||||
}
|
||||
|
||||
reloadData(extraParams: { [key: string]: any } = null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user