mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-24 22:14:43 +00:00
hydrateObj: use default param (#37483)
This commit is contained in:
parent
0a484e7586
commit
21e036bf13
1 changed files with 2 additions and 2 deletions
|
|
@ -300,8 +300,8 @@ const EventHandler = {
|
|||
}
|
||||
}
|
||||
|
||||
function hydrateObj(obj, meta) {
|
||||
for (const [key, value] of Object.entries(meta || {})) {
|
||||
function hydrateObj(obj, meta = {}) {
|
||||
for (const [key, value] of Object.entries(meta)) {
|
||||
try {
|
||||
obj[key] = value
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Reference in a new issue