Fix expanded (#1877)

* fix: fields not expanding after esbuild migration

* chore: fix local dev

* update snapshot

Co-authored-by: Oprysk <vyacheslav@redocly.com>
This commit is contained in:
Roman Hotsiy 2022-01-26 11:56:08 +02:00 committed by GitHub
parent c43824c6a3
commit 957f1a61be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -85,7 +85,7 @@ export default (env: { playground?: boolean; bench?: boolean } = {}, { mode }) =
{ {
test: /\.css$/, test: /\.css$/,
use: [ use: [
'style-loader', 'isomorphic-style-loader',
'css-loader', 'css-loader',
{ {
loader: 'esbuild-loader', loader: 'esbuild-loader',

View File

@ -46,6 +46,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false, "deprecated": false,
"description": "", "description": "",
"example": undefined, "example": undefined,
"expanded": undefined,
"explode": false, "explode": false,
"in": undefined, "in": undefined,
"kind": "field", "kind": "field",
@ -285,6 +286,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false, "deprecated": false,
"description": "", "description": "",
"example": undefined, "example": undefined,
"expanded": undefined,
"explode": false, "explode": false,
"in": undefined, "in": undefined,
"kind": "field", "kind": "field",
@ -781,6 +783,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false, "deprecated": false,
"description": "", "description": "",
"example": undefined, "example": undefined,
"expanded": undefined,
"explode": false, "explode": false,
"in": undefined, "in": undefined,
"kind": "field", "kind": "field",
@ -1020,6 +1023,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false, "deprecated": false,
"description": "", "description": "",
"example": undefined, "example": undefined,
"expanded": undefined,
"explode": false, "explode": false,
"in": undefined, "in": undefined,
"kind": "field", "kind": "field",
@ -1752,6 +1756,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false, "deprecated": false,
"description": "", "description": "",
"example": undefined, "example": undefined,
"expanded": undefined,
"explode": false, "explode": false,
"in": undefined, "in": undefined,
"kind": "field", "kind": "field",
@ -1991,6 +1996,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false, "deprecated": false,
"description": "", "description": "",
"example": undefined, "example": undefined,
"expanded": undefined,
"explode": false, "explode": false,
"in": undefined, "in": undefined,
"kind": "field", "kind": "field",
@ -2482,6 +2488,7 @@ exports[`Components SchemaView discriminator should correctly render discriminat
"deprecated": false, "deprecated": false,
"description": "", "description": "",
"example": undefined, "example": undefined,
"expanded": undefined,
"explode": false, "explode": false,
"in": undefined, "in": undefined,
"kind": "field", "kind": "field",
@ -2537,6 +2544,7 @@ exports[`Components SchemaView discriminator should correctly render discriminat
"deprecated": false, "deprecated": false,
"description": "", "description": "",
"example": undefined, "example": undefined,
"expanded": undefined,
"explode": false, "explode": false,
"in": undefined, "in": undefined,
"kind": "field", "kind": "field",

View File

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