easy-email-editor icon indicating copy to clipboard operation
easy-email-editor copied to clipboard

Fix broken type in getPreviewClassName

Open qeleb opened this issue 1 year ago • 0 comments

There is a mismatch in the easy-email types that leads to an annoying bug. This makes no difference (as idx is falsy checked before use), but will fix the type issue.

https://github.com/zalify/easy-email/blob/b9b6a5d82fa3718847a8c4ec2abec9a9365d1e93/packages/easy-email-core/src/utils/getPreviewClassName.ts#L4

Change to include undefined like this:

export function getPreviewClassName(idx: string | null | undefined, type: string) {

Can someone commit this exact change?

qeleb avatar Jun 16 '23 21:06 qeleb