Skip to content

Commit

Permalink
only check kebab keys (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-haynes authored Apr 15, 2024
1 parent aa44241 commit 5e0843a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/container/src/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ export const composeSerializationMethods: ComposeSerializationMethodsCallback =
* @param props Component props
*/
const isDuplicateKey = (key: string, props: any) => {
if (!key.includes('-')) {
return false;
}

return (
key
.split('-')
Expand Down Expand Up @@ -244,10 +248,7 @@ export const composeSerializationMethods: ComposeSerializationMethodsCallback =
});
};

const serializeArgs: SerializeArgsCallback = ({
args,
containerId,
}) => {
const serializeArgs: SerializeArgsCallback = ({ args, containerId }) => {
return (args || []).map((arg) => {
if (!arg) {
return arg;
Expand Down

0 comments on commit 5e0843a

Please sign in to comment.