mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 12:02:48 +00:00
Add additional fields to default
This commit is contained in:
@@ -2,6 +2,9 @@ const _ = require('lodash');
|
||||
|
||||
// Default brew properties in most cases
|
||||
const DEFAULT_BREW = {
|
||||
text : '',
|
||||
editId : null,
|
||||
shareId : null,
|
||||
title : 'Untitled Brew',
|
||||
description : '',
|
||||
renderer : 'V3',
|
||||
@@ -13,10 +16,13 @@ const DEFAULT_BREW = {
|
||||
theme : '5ePHB'
|
||||
};
|
||||
// Default brew properties for loading
|
||||
const DEFAULT_BREW_LOAD = _.defaults({
|
||||
renderer : 'legacy',
|
||||
published : true
|
||||
}, DEFAULT_BREW);
|
||||
const DEFAULT_BREW_LOAD = {};
|
||||
_.defaults(DEFAULT_BREW_LOAD,
|
||||
{
|
||||
renderer : 'legacy',
|
||||
published : true
|
||||
},
|
||||
DEFAULT_BREW);
|
||||
|
||||
module.exports = {
|
||||
DEFAULT_BREW,
|
||||
|
||||
Reference in New Issue
Block a user