mirror of
https://github.com/nicotsx/zerobyte.git
synced 2025-12-23 21:47:47 -05:00
fix: ensure safe access to backup name and volume in snapshot filtering
This commit is contained in:
@@ -36,8 +36,8 @@ export const RepositorySnapshotsTabContent = ({ repository }: Props) => {
|
||||
return (
|
||||
snapshot.short_id.toLowerCase().includes(searchLower) ||
|
||||
snapshot.paths.some((path) => path.toLowerCase().includes(searchLower)) ||
|
||||
backup?.name.toLowerCase().includes(searchLower) ||
|
||||
backup?.volume.name.toLowerCase().includes(searchLower)
|
||||
(backup?.name && backup.name.toLowerCase().includes(searchLower)) ||
|
||||
(backup?.volume?.name && backup.volume.name.toLowerCase().includes(searchLower))
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user