Comment out cache in getIssuesForEntityWithID

It seems like entity editor draws before the validator runs so the
rendered list is often one history change behind.
This commit is contained in:
Bryan Housel
2019-02-12 00:22:24 -05:00
parent 6cb1656cac
commit 4e6ade08b1
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -65,10 +65,10 @@ export function coreValidator(context) {
self.getIssuesForEntityWithID = function(entityID) {
if (!context.hasEntity(entityID)) return [];
if (!_issuesByEntityID[entityID]) {
// if (!_issuesByEntityID[entityID]) {
var entity = context.entity(entityID);
_issuesByEntityID[entityID] = validateEntity(entity);
}
// }
return _issuesByEntityID[entityID];
};