mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 19:02:38 +00:00
Add explicit guard clause to renderHistoryItems
This commit is contained in:
@@ -175,6 +175,8 @@ const Snippetbar = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
renderHistoryItems : function() {
|
renderHistoryItems : function() {
|
||||||
|
if(!this.state.historyExists) return;
|
||||||
|
|
||||||
return <div className='dropdown'>
|
return <div className='dropdown'>
|
||||||
{_.map(this.state.historyItems, (item, index)=>{
|
{_.map(this.state.historyItems, (item, index)=>{
|
||||||
if(item.noData || !item.savedAt) return;
|
if(item.noData || !item.savedAt) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user