fix: fix broken observable after mobx upgrade

This commit is contained in:
romanhotsiy 2020-10-13 18:58:00 +03:00
parent b848988c34
commit 39bedf90c4
No known key found for this signature in database
GPG Key ID: 0BC2221278CCBBB8
3 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,8 @@ import { RedocNormalizedOptions } from '../RedocNormalizedOptions';
export class CallbackModel {
@observable
expanded: boolean;
expanded: boolean = false;
name: string;
operations: OperationModel[] = [];

View File

@ -39,7 +39,7 @@ const DEFAULT_SERIALIZATION: Record<
*/
export class FieldModel {
@observable
expanded: boolean | undefined;
expanded: boolean | undefined = false;
schema: SchemaModel;
name: string;

View File

@ -10,7 +10,7 @@ import { MediaContentModel } from './MediaContent';
export class ResponseModel {
@observable
expanded: boolean;
expanded: boolean = false;
content?: MediaContentModel;
code: string;