Skip to content

Commit

Permalink
fix: Added missing type to stringSizeInBytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed Jul 18, 2022
1 parent eb4486f commit 465032f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/components/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function isNumber(value: unknown): value is number {
return typeof value === 'number';
}

export function stringSizeInBytes(input: string | IDataObject | undefined): number {
export function stringSizeInBytes(input: string | IDataObject | IDataObject[] | undefined): number {
if (input === undefined) return 0;

return new Blob([typeof input === 'string' ? input : JSON.stringify(input)]).size;
Expand Down

0 comments on commit 465032f

Please sign in to comment.