fix: fix broken observable after mobx upgrade (#1415)

This commit is contained in:
Roman Hotsiy 2020-10-13 18:59:58 +03:00 committed by GitHub
parent b848988c34
commit 26c407bd0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;