Skip to content

Commit

Permalink
Merge pull request #1138 from HifiExperiments/emptyField
Browse files Browse the repository at this point in the history
fix accidentally clearing url fields when you don't have view permission
  • Loading branch information
ksuprynowicz authored Sep 22, 2024
2 parents 808135b + 79cfa68 commit 542b231
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 542b231

Please sign in to comment.