Skip to content

Commit

Permalink
revert || {} is actually needed as long as the property is optional. …
Browse files Browse the repository at this point in the history
…I just needed to remove the return type
  • Loading branch information
GermanJablo committed Dec 11, 2024
1 parent b8e09bb commit 0372f9e
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 @@ -206,9 +206,9 @@ export class LexicalNode {
*
* @returns The classes object.
*/
getClasses(): ReadonlyClasses {
getClasses() {
const self = this.getLatest();
return self.__classes || {};
return self.__classes;
}

/**
Expand Down

0 comments on commit 0372f9e

Please sign in to comment.