Skip to content

Commit

Permalink
fix: improve assert
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jul 1, 2024
1 parent 1ad6967 commit d062e32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions projects/tui-editor/components/toolbar/toolbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
} from '@angular/core';
import {
EMPTY_QUERY,
tuiAssert,
TuiDestroyService,
TuiHandler,
TuiInjectionTokenType,
Expand Down Expand Up @@ -231,9 +230,9 @@ export class TuiToolbarComponent {
}

ngDevMode &&
tuiAssert.assert(
console.assert(
!!this.filesLoader,
'Please provide TUI_ATTACH_FILES_LOADER',
'Please provide TUI_ATTACH_FILES_LOADER, more: https://taiga-family.github.io/editor/starter-kit/Options',
);

this.filesLoader?.(files)
Expand Down

0 comments on commit d062e32

Please sign in to comment.