doubtfire-lms / doubtfire-web

Angular web application for the Doubtfire front-end
GNU Affero General Public License v3.0
45 stars 332 forks source link

fix: resolved issue with intelligent discussion #776

Closed maddernd closed 9 months ago

maddernd commented 9 months ago

Description

Resolved issue with intelligent discussion not loading due to error.

error_handler.ts:45 ERROR Error: NG0300: Multiple components match node with tagname button: _MatButton and _MatIconButton. Find more at https://angular.io/errors/NG0300 at throwMultipleComponentError (errors.ts:52:9) at findDirectiveDefMatches (shared.ts:1070:15) at resolveDirectives (shared.ts:831:25) at elementStartFirstCreatePass (element.ts:43:3) at Module.ɵɵelementStart (element.ts:90:7) at DiscussionComposerDialog_Template (discussion-prompt-composer-dialog.html:1:1) at executeTemplate (shared.ts:261:5) at renderView (render.ts:86:7) at renderComponent (render.ts:30:3) at renderChildComponents (render.ts:136:5)

Fixes # intelligent discussion The problem was the use of both mat-button and mat-icon-button directives on the same button element

image

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Tested in local development environment minor HTML change.

Testing Checklist:

Checklist: