Skip to content

Commit

Permalink
Lint fix (#5650)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 27, 2023
1 parent 849287e commit da5d3de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/lib/componentbase/ComponentBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,14 @@ export const ComponentBase = {

const getPTClassValue = (...args) => {
const value = getOptionValue(...args);

if (Array.isArray(value)) return { className: classNames(...value) };
if (ObjectUtils.isString(value)) return { className: value };

if (value?.hasOwnProperty('className') && Array.isArray(value.className)) {
return { className: classNames(...value.className) };
}

return value;
};

Expand Down

0 comments on commit da5d3de

Please sign in to comment.