From 2cdd02d1fb5db86fae4e950f83016794c82898ec Mon Sep 17 00:00:00 2001 From: Arthur Mota Date: Thu, 9 Dec 2021 22:30:47 -0300 Subject: [PATCH] Add column only if has target table --- app/angular/service/logicService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/angular/service/logicService.js b/app/angular/service/logicService.js index 56b5dab6..35146a7e 100644 --- a/app/angular/service/logicService.js +++ b/app/angular/service/logicService.js @@ -311,7 +311,7 @@ const logicService = ($rootScope, ModelAPI, LogicFactory, LogicConversorService) idLink: link.id, }); - target.addAttribute(column); + if (target) target.addAttribute(column); $rootScope.$broadcast('element:update', ls.paper.findViewByModel(target)); }