mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-17 02:10:39 +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;
|
let $element = compRef.location.nativeElement;
|
||||||
|
|
||||||
// skip caching view with tabs inside (discriminator) as it needs attached controller
|
// 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) => {
|
this.dcl.loadNextToLocation(JsonSchema, this.elementRef).then((compRef) => {
|
||||||
compRef.instance.pointer = this.pointer;
|
compRef.instance.pointer = this.pointer;
|
||||||
compRef.hostView.changeDetectorRef.markForCheck();
|
compRef.hostView.changeDetectorRef.markForCheck();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user