Studio: fix crash

This commit is contained in:
Pieter Vander Vennet 2024-05-14 19:01:05 +02:00
parent 55660b285b
commit 8218b42c9e

View file

@ -103,7 +103,7 @@ export abstract class EditJsonState<T> {
// Walk the path down to see if we find something
let entry = this.configuration.data
for (let i = 0; i < path.length; i++) {
if (entry === undefined) {
if (entry === undefined || entry === null) {
// We reached a dead end - no old vlaue
return undefined
}