fix: check if updateTextureSelectValue is defined before calling

This commit is contained in:
Claude 2025-11-14 03:22:23 +00:00
parent a1f9c6dde3
commit 74b9310c57
No known key found for this signature in database

View file

@ -487,7 +487,7 @@ async function parseLoadedData(data, mapVersion) {
{
// add custom texture if any
const textureHref = texture.attr("data-href");
if (textureHref) updateTextureSelectValue(textureHref);
if (textureHref && typeof updateTextureSelectValue !== "undefined") updateTextureSelectValue(textureHref);
}
// data integrity checks