Skip to content

Commit

Permalink
486247 - code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
infloent committed Sep 5, 2024
1 parent e216f2d commit ff8c206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/component-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default class ComponentBase extends HTMLElement {

this.dataAttributesKeys.forEach(({ noData, noDataCamelCase }) => {
const value = this.dataset[noDataCamelCase];
// TODO check this

if (typeof value === 'undefined') return {};
const initialValue = unFlat({ [noData]: value });
initialAttributesValues.all.data = deepMerge({}, initialAttributesValues.all.data, initialValue);
Expand Down

0 comments on commit ff8c206

Please sign in to comment.