diff --git a/src/property.js b/src/property.js index accb6da..e446e6a 100644 --- a/src/property.js +++ b/src/property.js @@ -34,7 +34,7 @@ class Property { }); if(!Array.isArray(talent)) - talent = `${talent}`?.split(',') || []; + talent = talent?.split(',') || []; talent = talent.map(v=>Number(v));