Skip to content

Commit

Permalink
eslint fix cs
Browse files Browse the repository at this point in the history
eslint fix cs
  • Loading branch information
vraja-pro committed May 27, 2024
1 parent 7e41d5b commit 6fe438c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/js/src/helpers/fields/blockEditorSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const createUpdater = () => {
changedData[ `${POST_META_KEY_PREFIX}primary_terms` ] = {};
}
changedData[ `${POST_META_KEY_PREFIX}primary_terms` ][ key ] = transformedValue;
}
});
}
} );
}

if ( changedData ) {
Expand Down
2 changes: 1 addition & 1 deletion packages/js/src/redux/initial-state/primaryTaxonomies.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { get, reduce } from "lodash";

const primaryTerms = get( window, "wpseoPrimaryCategoryL10n.taxonomies", {} );

export const primaryTaxonomies = reduce( primaryTerms, ( acc, value, key ) => {
export const primaryTaxonomies = reduce( primaryTerms, ( acc, value ) => {
acc[ value.name ] = value.primary || -1;
return acc;
}, {} );
Expand Down

0 comments on commit 6fe438c

Please sign in to comment.