mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
Fix caching schemas with discriminator
This commit is contained in:
parent
2cbb516059
commit
8b30653fb0
|
@ -55,7 +55,8 @@ export default class JsonSchemaLazy {
|
|||
let $element = compRef.location.nativeElement;
|
||||
|
||||
// skip caching view with tabs inside (discriminator) as it needs attached controller
|
||||
if ($element.querySelector('tabs')) {
|
||||
// FIXME: get rid of dependency on selector
|
||||
if ($element.querySelector('.discriminator-wrap')) {
|
||||
this.dcl.loadNextToLocation(JsonSchema, this.elementRef).then((compRef) => {
|
||||
compRef.instance.pointer = this.pointer;
|
||||
compRef.hostView.changeDetectorRef.markForCheck();
|
||||
|
|
Loading…
Reference in New Issue
Block a user