Merge branch 'master' into limitStreamListeners-#5090.1

This commit is contained in:
Trevor Buckner
2026-10-13 10:57:50 -04:00
committed by GitHub
+16 -6
View File
@@ -74,7 +74,7 @@ const VaultPage = (props)=>{
updateStateWithBrews([], 1); updateStateWithBrews([], 1);
}); });
if(response.ok) if(response?.ok)
updateStateWithBrews(response.body.brews, page); updateStateWithBrews(response.body.brews, page);
}; };
@@ -364,13 +364,23 @@ const VaultPage = (props)=>{
} }
if(error) { if(error) {
const errorText = ErrorIndex()[error.HBErrorCode.toString()] || ''; if(error.HBErrorCode === undefined) {
return (
<div className='foundBrews noBrews'>
<h3>{error.toString()}</h3>
</div>
)
} else {
return ( const errorText = ErrorIndex()[error.HBErrorCode.toString()] || '';
<div className='foundBrews noBrews'>
return (
<div className='foundBrews noBrews'>
<h3>Error: {errorText}</h3> <h3>Error: {errorText}</h3>
</div> </div>
); );
}
} }
if(!brewCollection) { if(!brewCollection) {