From a9428b2210d7813e34c33ec22863c6f07471b28c Mon Sep 17 00:00:00 2001 From: Norman Hooper Date: Sun, 14 Jul 2024 00:59:59 +0100 Subject: [PATCH] Move `groupObj.properties.subscribe()` --- .../static/data_dictionary/js/data_dictionary.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/corehq/apps/data_dictionary/static/data_dictionary/js/data_dictionary.js b/corehq/apps/data_dictionary/static/data_dictionary/js/data_dictionary.js index 620fd935e699..026d56c96642 100644 --- a/corehq/apps/data_dictionary/static/data_dictionary/js/data_dictionary.js +++ b/corehq/apps/data_dictionary/static/data_dictionary/js/data_dictionary.js @@ -82,7 +82,6 @@ hqDefine("data_dictionary/js/data_dictionary", [ group.deprecated, self.changeSaveButton ); - groupObj.properties.subscribe(self.changeSaveButton); self.groups.push(groupObj); } @@ -143,7 +142,7 @@ hqDefine("data_dictionary/js/data_dictionary", [ self.name.subscribe(changeSaveButton); self.description.subscribe(changeSaveButton); self.toBeDeprecated.subscribe(changeSaveButton); - // Don't subscribe self.properties until they have been loaded + self.properties.subscribe(changeSaveButton); return self; };