Skip to content

Commit

Permalink
switch parseJSON to JSON.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga authored and stejskalleos committed Jul 30, 2024
1 parent 6aa2761 commit 5ae9af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack/src/foreman_class_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function addConfigGroup(item) {
.addClass('selected-marker')
.hide();

const puppetclassIds = $.parseJSON($(item).attr('data-puppetclass-ids'));
const puppetclassIds = JSON.parse($(item).attr('data-puppetclass-ids'));
const inheritedIds = _getInheritedIds();

$.each(puppetclassIds, (index, puppetclassId) => {
Expand Down Expand Up @@ -182,7 +182,7 @@ export function removeConfigGroup(item) {
.tooltip('hide');
$(`#selected_config_group_${id}`).remove();

const puppetclassIds = $.parseJSON($(item).attr('data-puppetclass-ids'));
const puppetclassIds = JSON.parse($(item).attr('data-puppetclass-ids'));
const inheritedIds = _getInheritedIds();

$.each(puppetclassIds, (index, puppetclassId) => {
Expand Down

0 comments on commit 5ae9af8

Please sign in to comment.