mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-28 17:28:40 +00:00
Fix undefined current
This commit is contained in:
parent
c8fbc69f94
commit
14b668f54c
|
|
@ -31,6 +31,10 @@
|
|||
let current = data;
|
||||
|
||||
for(let key in pathParts) {
|
||||
if(current === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
current = current[key];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,10 @@
|
|||
let current = data;
|
||||
|
||||
for(let key in pathParts) {
|
||||
if(current === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
current = current[pathParts[key]];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user