Skip to content

Commit

Permalink
Allow stored data to return falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Jun 19, 2024
1 parent f31b020 commit e8715f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/decorate.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports.decorate = function (params, keyPath, componentName) {
}

// Get stored value from session data, else local data
const storedValue = _.get(data, keyPath) || _.get(this.ctx, keyPath) || ''
const storedValue = _.get(data, keyPath) || _.get(this.ctx, keyPath)

params.id = params.id ? params.id : keyPath.join('-')
params.name = params.name
Expand Down

0 comments on commit e8715f8

Please sign in to comment.