Skip to content

Commit 2b8f349

Browse files
authored
fix(front): organization people page error (#663)
## πŸ“ Description Some duplicated code running on organization people page is causing an error when actions are called. This PR removes this duplicated piece. ## βœ… Checklist - [x] I have tested this change - [ ] This change requires documentation update
1 parent 6ecf883 commit 2b8f349

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

β€Žfront/assets/js/app.jsβ€Ž

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ export var App = {
310310

311311
const syncPeopleEl = document.querySelector(".app-sync-people");
312312
if (syncPeopleEl) {
313-
const config = JSON.parse(syncPeopleEl.dataset.config);
314-
SyncPeople({ dom: syncPeopleEl, config });
313+
SyncPeople({ dom: syncPeopleEl, config: syncPeopleEl.dataset });
315314
}
316315

317316
document.querySelectorAll(".app-edit-person").forEach((editPersonAppRoot) => {
@@ -320,13 +319,6 @@ export var App = {
320319
config: editPersonAppRoot.dataset
321320
})
322321
});
323-
324-
document.querySelectorAll(".app-sync-people").forEach((syncPeopleAppRoot) => {
325-
SyncPeople({
326-
dom: syncPeopleAppRoot,
327-
config: syncPeopleAppRoot.dataset
328-
})
329-
});
330322
},
331323
organization_okta: function () {
332324
OrganizationOktaGroupMappingApp({

0 commit comments

Comments
Β (0)