fix: ensure safe access to backup name and volume in snapshot filtering
This commit is contained in:
parent
9caccc969c
commit
65655ebb56
1 changed files with 2 additions and 2 deletions
|
|
@ -36,8 +36,8 @@ export const RepositorySnapshotsTabContent = ({ repository }: Props) => {
|
||||||
return (
|
return (
|
||||||
snapshot.short_id.toLowerCase().includes(searchLower) ||
|
snapshot.short_id.toLowerCase().includes(searchLower) ||
|
||||||
snapshot.paths.some((path) => path.toLowerCase().includes(searchLower)) ||
|
snapshot.paths.some((path) => path.toLowerCase().includes(searchLower)) ||
|
||||||
backup?.name.toLowerCase().includes(searchLower) ||
|
(backup?.name && backup.name.toLowerCase().includes(searchLower)) ||
|
||||||
backup?.volume.name.toLowerCase().includes(searchLower)
|
(backup?.volume?.name && backup.volume.name.toLowerCase().includes(searchLower))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue