mirror of
https://github.com/lubosz/overte.git
synced 2025-08-14 12:52:34 +02:00
dont check userdata if we dont need to
This commit is contained in:
parent
624cefa806
commit
e40fe09364
1 changed files with 4 additions and 0 deletions
|
@ -310,6 +310,10 @@
|
||||||
results.forEach(function(result) {
|
results.forEach(function(result) {
|
||||||
var properties = Entities.getEntityProperties(result);
|
var properties = Entities.getEntityProperties(result);
|
||||||
var userData = null;
|
var userData = null;
|
||||||
|
if(userData===""){
|
||||||
|
print('no userdata -- its blank')
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
userData = JSON.parse(properties.userData);
|
userData = JSON.parse(properties.userData);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in a new issue