making immonet null safe

This commit is contained in:
weakmap@gmail.com
2025-08-31 20:25:52 +02:00
parent 1cb79d1287
commit 9db1ffd8eb
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ let appliedBlackList = [];
function normalize(o) {
const size = o.size != null ? o.size.replace('Wohnfläche ', '') : 'N/A m²';
const price = o.price.replace('Kaufpreis ', '');
const address = o.address.split(' • ')[o.address.split(' • ').length - 1];
const address = o.address?.split(' • ')?.pop() ?? null;
const title = o.title || 'No title available';
const link = config.url;
const id = buildHash(title, price);

View File

@@ -1,6 +1,6 @@
{
"name": "fredy",
"version": "11.4.3",
"version": "11.4.4",
"description": "[F]ind [R]eal [E]states [d]amn eas[y].",
"scripts": {
"prepare": "husky",