mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#184 RTU and pocket lists on supervisor front panel, element delete() bugfix
This commit is contained in:
@ -323,7 +323,10 @@ function element.new(args)
|
||||
protected.children[k] = nil
|
||||
end
|
||||
|
||||
args.parent.__remove_child(self.id)
|
||||
if args.parent ~= nil then
|
||||
-- remove self from parent
|
||||
args.parent.__remove_child(self.id)
|
||||
end
|
||||
end
|
||||
|
||||
-- ELEMENT TREE --
|
||||
|
Reference in New Issue
Block a user