Skip to content
Snippets Groups Projects
Unverified Commit 4a9be74e authored by Nick Fitzpatrick's avatar Nick Fitzpatrick Committed by GitHub
Browse files

Close info panel when question is unsaved (#23639)

parent 3e96f3df
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,8 @@ class View extends React.Component {
onSave,
} = this.props;
const isSaved = question.isSaved();
if (isShowingSummarySidebar) {
return (
<SummarizeSidebar
......@@ -198,7 +200,7 @@ class View extends React.Component {
);
}
if (isShowingQuestionInfoSidebar) {
if (isSaved && isShowingQuestionInfoSidebar) {
return <QuestionInfoSidebar question={question} onSave={onSave} />;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment