3 ms·Uncaught TypeError: Cannot read properties of undefined (reading 'periods')by itslennysfault 4y agoUncaught TypeError: Cannot read properties of undefined (reading 'periods')tgv 4y ago:3,$s/\./?./g Solves all your problems without having to think.leipert 4y agoperiods could be null. So you would need to optional chain the array access also.