Removed child org from parent children list

This commit is contained in:
Nathan Schneider committed 2022-08-26 15:59:38 -07:00
1 parent ec0e4aa9c1
commit 13eb58a3ee
5 files changed
+42 -18

No files matched your search

+3 -1
View File
@@ -152,7 +152,9 @@ function modpol.interactions.org_dashboard(user, org_string)
local children = {}
for k,v in ipairs(org.children) do
local this_child = modpol.orgs.get_org(v)
table.insert(children, this_child.name)
if this_child then
table.insert(children, this_child.name)
end
end
-- prepare modules menu