Skip to content

Commit

Permalink
Fix expanded (Redocly#1877)
Browse files Browse the repository at this point in the history
* fix: fields not expanding after esbuild migration

* chore: fix local dev

* update snapshot

Co-authored-by: Oprysk <[email protected]>
  • Loading branch information
RomanHotsiy and Oprysk authored Jan 26, 2022
1 parent c43824c commit 957f1a6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default (env: { playground?: boolean; bench?: boolean } = {}, { mode }) =
{
test: /\.css$/,
use: [
'style-loader',
'isomorphic-style-loader',
'css-loader',
{
loader: 'esbuild-loader',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false,
"description": "",
"example": undefined,
"expanded": undefined,
"explode": false,
"in": undefined,
"kind": "field",
Expand Down Expand Up @@ -285,6 +286,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false,
"description": "",
"example": undefined,
"expanded": undefined,
"explode": false,
"in": undefined,
"kind": "field",
Expand Down Expand Up @@ -781,6 +783,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false,
"description": "",
"example": undefined,
"expanded": undefined,
"explode": false,
"in": undefined,
"kind": "field",
Expand Down Expand Up @@ -1020,6 +1023,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false,
"description": "",
"example": undefined,
"expanded": undefined,
"explode": false,
"in": undefined,
"kind": "field",
Expand Down Expand Up @@ -1752,6 +1756,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false,
"description": "",
"example": undefined,
"expanded": undefined,
"explode": false,
"in": undefined,
"kind": "field",
Expand Down Expand Up @@ -1991,6 +1996,7 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
"deprecated": false,
"description": "",
"example": undefined,
"expanded": undefined,
"explode": false,
"in": undefined,
"kind": "field",
Expand Down Expand Up @@ -2482,6 +2488,7 @@ exports[`Components SchemaView discriminator should correctly render discriminat
"deprecated": false,
"description": "",
"example": undefined,
"expanded": undefined,
"explode": false,
"in": undefined,
"kind": "field",
Expand Down Expand Up @@ -2537,6 +2544,7 @@ exports[`Components SchemaView discriminator should correctly render discriminat
"deprecated": false,
"description": "",
"example": undefined,
"expanded": undefined,
"explode": false,
"in": undefined,
"kind": "field",
Expand Down
2 changes: 1 addition & 1 deletion src/services/models/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const DEFAULT_SERIALIZATION: Record<
*/
export class FieldModel {
@observable
expanded: boolean | undefined;
expanded: boolean | undefined = undefined;

schema: SchemaModel;
name: string;
Expand Down

0 comments on commit 957f1a6

Please sign in to comment.