Skip to content

Commit

Permalink
fix accidentally clearing url fields when you don't have view permission
Browse files Browse the repository at this point in the history
  • Loading branch information
HifiExperiments committed Sep 9, 2024
1 parent a142f7d commit 79cfa68
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 79cfa68

Please sign in to comment.