Skip to content

Commit de995fb

Browse files
committed
TINY-11908: Fix test
1 parent b0144a1 commit de995fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/ts/Utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ const mergePlugins = (initPlugins: string | string[] | undefined, inputPlugins?:
155155
const isNullOrUndefined = (value: any): value is null | undefined =>
156156
value === null || value === undefined;
157157

158-
const isDisabledOptionSupported = (editor: TinyMCEEditor | null): boolean =>
159-
typeof editor?.options.set === 'function' && editor.options.isRegistered('disabled');
158+
const isDisabledOptionSupported = (editor: TinyMCEEditor): boolean =>
159+
typeof editor.options?.set === 'function' && editor.options.isRegistered('disabled');
160160

161161
export {
162162
bindHandlers,

0 commit comments

Comments
 (0)