Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanJablo committed Jan 31, 2025
1 parent 90a032b commit c663540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lexical/src/LexicalNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ export class LexicalNode {
return {
type: this.__type,
version: 1,
...(objetcIsEmpty(this.__state) ? {} : {state: this.__state}),
...(objectIsEmpty(this.__state) ? {} : {state: this.__state}),
};
}

Expand Down Expand Up @@ -1343,7 +1343,7 @@ export function insertRangeAfter(
* The best way to check if an object is empty in O(1)
* @see https://stackoverflow.com/a/59787784/10476393
*/
function objetcIsEmpty(obj: object) {
function objectIsEmpty(obj: object) {
for (const key in obj) {
return false;
}
Expand Down

0 comments on commit c663540

Please sign in to comment.