File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
apps/renterd/components/Files/Columns/FilesHealthColumn Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' renterd ' : patch
3
+ ---
4
+
5
+ Fixed an issue where hovering over the file health information would crash the app. Closes https://github.com/SiaFoundation/renterd/issues/997
Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ export function FilesHealthColumnContents({
55
55
}
56
56
57
57
const slabs = sortBy (
58
- obj . data . object . slabs . map ( ( s ) => ( {
58
+ obj . data . object . slabs ? .map ( ( s ) => ( {
59
59
...s . slab ,
60
+ key : `${ s . offset } ${ s . length } ${ s . slab . key } ` ,
60
61
isPartialSlab : ! ! s . slab . shards ,
61
62
contractSetShards : s . slab . shards ?. length
62
63
? computeSlabContractSetShards ( {
@@ -65,7 +66,7 @@ export function FilesHealthColumnContents({
65
66
health : s . slab . health ,
66
67
} )
67
68
: 0 ,
68
- } ) ) ,
69
+ } ) ) || [ ] ,
69
70
'contractSetShards'
70
71
)
71
72
You can’t perform that action at this time.
0 commit comments