@wg-npm/survey-creator 0.3.6202 → 0.3.6643
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4369,7 +4369,7 @@ var script$1 = Vue.extend({
|
|
|
4369
4369
|
}
|
|
4370
4370
|
this.primaryLanguage = _.camelCase(this.currentSurvey.options.primaryLanguage);
|
|
4371
4371
|
if (this.showQuestionWhenPageLoad) {
|
|
4372
|
-
const question = _.
|
|
4372
|
+
const question = _.find(this.currentSurvey?.questions, questions => { return questions.type === this.showQuestionType; });
|
|
4373
4373
|
if (_.isUndefined(question)) {
|
|
4374
4374
|
this.createQuestion(this.showQuestionType);
|
|
4375
4375
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-creator",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6643",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"lint-fix": "eslint \"**/*.ts\" \"**/*.vue\" --fix --no-error-on-unmatched-pattern"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@wg-npm/survey-core": "0.3.
|
|
16
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
15
|
+
"@wg-npm/survey-core": "0.3.6643",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.3.6643",
|
|
17
17
|
"axios": "^0.19.2",
|
|
18
18
|
"camelcase": "^6.0.0",
|
|
19
19
|
"deepmerge": "^4.2.2",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
|
39
39
|
"@typescript-eslint/parser": "^3.6.0",
|
|
40
40
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
41
|
-
"@wg-npm/survey-core": "0.3.
|
|
42
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
41
|
+
"@wg-npm/survey-core": "0.3.6643",
|
|
42
|
+
"@wg-npm/survey-service-api": "0.3.6643",
|
|
43
43
|
"acorn": "^7.3.1",
|
|
44
44
|
"axios": "^0.19.2",
|
|
45
45
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
this.primaryLanguage = _.camelCase(this.currentSurvey.options.primaryLanguage);
|
|
195
195
|
|
|
196
196
|
if (this.showQuestionWhenPageLoad) {
|
|
197
|
-
const question = _.
|
|
197
|
+
const question = _.find(this.currentSurvey?.questions, questions=> { return questions.type === this.showQuestionType})
|
|
198
198
|
if (_.isUndefined(question)) {
|
|
199
199
|
this.createQuestion(this.showQuestionType)
|
|
200
200
|
} else {
|