0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +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
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,