mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
fix: fix broken observable after mobx upgrade (#1415)
This commit is contained in:
parent
b848988c34
commit
26c407bd0f
|
@ -8,7 +8,8 @@ import { RedocNormalizedOptions } from '../RedocNormalizedOptions';
|
||||||
|
|
||||||
export class CallbackModel {
|
export class CallbackModel {
|
||||||
@observable
|
@observable
|
||||||
expanded: boolean;
|
expanded: boolean = false;
|
||||||
|
|
||||||
name: string;
|
name: string;
|
||||||
operations: OperationModel[] = [];
|
operations: OperationModel[] = [];
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ const DEFAULT_SERIALIZATION: Record<
|
||||||
*/
|
*/
|
||||||
export class FieldModel {
|
export class FieldModel {
|
||||||
@observable
|
@observable
|
||||||
expanded: boolean | undefined;
|
expanded: boolean | undefined = false;
|
||||||
|
|
||||||
schema: SchemaModel;
|
schema: SchemaModel;
|
||||||
name: string;
|
name: string;
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { MediaContentModel } from './MediaContent';
|
||||||
|
|
||||||
export class ResponseModel {
|
export class ResponseModel {
|
||||||
@observable
|
@observable
|
||||||
expanded: boolean;
|
expanded: boolean = false;
|
||||||
|
|
||||||
content?: MediaContentModel;
|
content?: MediaContentModel;
|
||||||
code: string;
|
code: string;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user