mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 15:06:55 +00:00
Fix: avoid setting undefined for preferredSize for the <Allotment.Pane>
This commit is contained in:
parent
624f2fb5a5
commit
ac619cbbe2
@ -739,7 +739,12 @@ class QueryTabComponentImpl extends React.Component<QueryTabComponentImplProps,
|
|||||||
this.setState({ queryViewSizePercent }, () => this.saveQueryTabStateDebounced());
|
this.setState({ queryViewSizePercent }, () => this.saveQueryTabStateDebounced());
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Allotment.Pane data-test="QueryTab/EditorPane" preferredSize={`${this.state.queryViewSizePercent}%`}>
|
<Allotment.Pane
|
||||||
|
data-test="QueryTab/EditorPane"
|
||||||
|
preferredSize={
|
||||||
|
this.state.queryViewSizePercent !== undefined ? `${this.state.queryViewSizePercent}%` : undefined
|
||||||
|
}
|
||||||
|
>
|
||||||
<EditorReact
|
<EditorReact
|
||||||
ref={this.queryEditor}
|
ref={this.queryEditor}
|
||||||
className={this.props.styles.queryEditor}
|
className={this.props.styles.queryEditor}
|
||||||
|
Loading…
Reference in New Issue
Block a user