Skip to content

Commit 05d58d1

Browse files
tsv2013tsv2013
and
tsv2013
authored
Resolved surveyjs/private-tasks#469 - v2.0 - Advanced/Basic Header Considerations + Breaking Changes (#6634)
Co-authored-by: tsv2013 <tsv2013@noreply.github.com>
1 parent c88dd77 commit 05d58d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/survey-creator-core/src/creator-base.ts

+3
Original file line numberDiff line numberDiff line change
@@ -2112,6 +2112,9 @@ export class SurveyCreatorModel extends Base
21122112
* @returns true if initial survey doesn't have any elements or properties
21132113
*/
21142114
protected initSurveyWithJSON(json: any, clearState: boolean): void {
2115+
if (!json) {
2116+
json = { "headerView": "advanced" };
2117+
}
21152118
this.existingPages = {};
21162119
const survey = this.createSurvey({}, "designer", undefined, (survey: SurveyModel) => {
21172120
survey.skeletonHeight = 188;

0 commit comments

Comments
 (0)