0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 23:32:58 +00:00

Add additional fields to default

This commit is contained in:
G.Ambatte
2022-12-14 21:26:57 +13:00
parent a89b20584f
commit 32506860dd

View File

@@ -2,6 +2,9 @@ const _ = require('lodash');
// Default brew properties in most cases // Default brew properties in most cases
const DEFAULT_BREW = { const DEFAULT_BREW = {
text : '',
editId : null,
shareId : null,
title : 'Untitled Brew', title : 'Untitled Brew',
description : '', description : '',
renderer : 'V3', renderer : 'V3',
@@ -13,10 +16,13 @@ const DEFAULT_BREW = {
theme : '5ePHB' theme : '5ePHB'
}; };
// Default brew properties for loading // Default brew properties for loading
const DEFAULT_BREW_LOAD = _.defaults({ const DEFAULT_BREW_LOAD = {};
renderer : 'legacy', _.defaults(DEFAULT_BREW_LOAD,
published : true {
}, DEFAULT_BREW); renderer : 'legacy',
published : true
},
DEFAULT_BREW);
module.exports = { module.exports = {
DEFAULT_BREW, DEFAULT_BREW,