Skip to content

Commit

Permalink
fix cover
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaLarina committed Oct 5, 2023
1 parent daa8213 commit 6a7b6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ export class SurveyModel extends SurveyElementCore
@property({
onSet: (newValue, target: SurveyModel) => {
if (newValue === "advanced") {
const layoutElement = target.layoutElements.filter(a => a.id === newValue)[0];
const layoutElement = target.layoutElements.filter(a => a.id === "cover")[0];
if (!layoutElement) {
var cover = new Cover();
cover.logoPositionX = target.logoPosition === "right" ? "right" : "left";
Expand Down

0 comments on commit 6a7b6e2

Please sign in to comment.