mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 14:55:07 +01:00
Fix: handle undefined IDs in getOriginalObject (#11147)
This commit is contained in:
parent
91e2220f23
commit
0fc595a16a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue