Skip to content

Commit

Permalink
[#12499] Flickering questions when loading session results (#12570)
Browse files Browse the repository at this point in the history
* [#12499] Fixed flickering questions when loading feedback session results.

* Update question-response-panel.component.ts

* Update question-response-panel.component.ts

* Update question-response-panel.component.ts

* Update session-result-page.component.spec.ts

* Update question-response-panel.component.ts

* Update question-response-panel.component.ts

* Update question-response-panel.component.ts

---------

Co-authored-by: Jason Qiu <[email protected]>
  • Loading branch information
blejkowski and jasonqiu212 authored Sep 15, 2023
1 parent 0e09533 commit ed3d5f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class QuestionResponsePanelComponent {
next: (sessionResults: SessionResults) => {
const responses: QuestionOutput = sessionResults.questions[0];
if (responses) {
question.hasResponse = true;
question.feedbackQuestion = responses.feedbackQuestion;
question.allResponses = responses.allResponses;
question.otherResponses = responses.otherResponses;
Expand All @@ -104,7 +105,7 @@ export class QuestionResponsePanelComponent {
question.responsesToSelf = responses.responsesToSelf;
question.hasResponseButNotVisibleForPreview = responses.hasResponseButNotVisibleForPreview;
question.hasCommentNotVisibleForPreview = responses.hasCommentNotVisibleForPreview;
} else {
} else {
question.hasResponse = false;
if (question.errorMessage) {
this.statusMessageService.showSuccessToast('Question '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ describe('SessionResultPageComponent', () => {
otherResponses: [],
isLoading: false,
isLoaded: false,
hasResponse: true,
hasResponse: false,
hasResponseButNotVisibleForPreview: false,
hasCommentNotVisibleForPreview: false,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class SessionResultPageComponent implements OnInit {
otherResponses: [],
isLoading: false,
isLoaded: false,
hasResponse: true,
hasResponse: false,
hasResponseButNotVisibleForPreview: false,
hasCommentNotVisibleForPreview: false,
});
Expand Down

0 comments on commit ed3d5f0

Please sign in to comment.