fix accidentally clearing url fields when you don't have view permission

This commit is contained in:
HifiExperiments 2024-09-09 14:58:41 -07:00
parent a142f7de72
commit 79cfa68edf

View file

@ -2365,6 +2365,11 @@ function updateMultiDiffProperties(propertiesMapToUpdate, onlyUpdateEntity) {
function createEmitTextPropertyUpdateFunction(property) {
return function() {
// If we don't have canViewAssetURLs permissions, ignore clearing URLs
if (!canViewAssetURLs && property.data.placeholder === "URL" && this.value === "") {
return;
}
property.elInput.classList.remove('multi-diff');
updateProperty(property.name, this.value, property.isParticleProperty);
};