0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Add explicit guard clause to renderHistoryItems

This commit is contained in:
G.Ambatte
2024-10-10 08:48:14 +13:00
parent 618de544bf
commit 36674f4cf2

View File

@@ -175,6 +175,8 @@ const Snippetbar = createClass({
},
renderHistoryItems : function() {
if(!this.state.historyExists) return;
return <div className='dropdown'>
{_.map(this.state.historyItems, (item, index)=>{
if(item.noData || !item.savedAt) return;