0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Add default value for document name in snippets menu

This commit is contained in:
David Bolack
2025-03-14 19:26:37 -05:00
parent b605346c7d
commit 99efe7f06b

View File

@@ -121,7 +121,7 @@ const Snippetbar = createClass({
}
}
const userSnippetsasJSON = brewSnippetsToJSON(this.props.brew.title, this.props.brew.snippets, this.props.themeBundle.snippets);
const userSnippetsasJSON = brewSnippetsToJSON(this.props.brew.title || 'New Document', this.props.brew.snippets, this.props.themeBundle.snippets);
compiledSnippets.push(userSnippetsasJSON);
return compiledSnippets;