Catch empty data object in reach.

This commit is contained in:
trading_peter 2024-07-30 11:37:11 +02:00
parent cd4698d73b
commit 69042b8ebe

View File

@ -1,4 +1,6 @@
export const reach = (path, data) => {
if (!data) return;
const parts = path.split('.');
let part;
while (part = parts.shift()) {