@wg-npm/survey-response 0.3.22615 → 0.3.22650
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.
|
@@ -1575,7 +1575,9 @@ var script = Vue.extend({
|
|
|
1575
1575
|
if (Array.isArray(currentSingleQuestion.jumps) &&
|
|
1576
1576
|
currentSingleQuestion.jumps.length > 0) {
|
|
1577
1577
|
let target = currentSingleQuestion.jumps.find((item) => item.choiceId === selected.choiceId);
|
|
1578
|
-
let disabledArr = currentSingleQuestion.jumps
|
|
1578
|
+
let disabledArr = currentSingleQuestion.jumps
|
|
1579
|
+
.filter((item) => item.choiceId !== selected.choiceId)
|
|
1580
|
+
.filter((item) => target.toQuestionId !== item.toQuestionId);
|
|
1579
1581
|
if (target) {
|
|
1580
1582
|
if (this.recordQuestionId === selected.questionId) {
|
|
1581
1583
|
let resetItem = this.sortQuestions.find((item) => item.id === target.toQuestionId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-response",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22650",
|
|
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.22650",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.3.22650",
|
|
17
17
|
"axios": "^0.19.2",
|
|
18
18
|
"deepmerge": "^4.2.2",
|
|
19
19
|
"lodash": "^4.17.15",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@typescript-eslint/parser": "^3.6.0",
|
|
35
35
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
36
36
|
"@vue/eslint-config-typescript": "^5.0.2",
|
|
37
|
-
"@wg-npm/survey-core": "0.3.
|
|
38
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
37
|
+
"@wg-npm/survey-core": "0.3.22650",
|
|
38
|
+
"@wg-npm/survey-service-api": "0.3.22650",
|
|
39
39
|
"acorn": "^7.3.1",
|
|
40
40
|
"axios": "^0.19.2",
|
|
41
41
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -145,9 +145,9 @@ export default Vue.extend({
|
|
|
145
145
|
let target = currentSingleQuestion.jumps.find(
|
|
146
146
|
(item) => item.choiceId === selected.choiceId
|
|
147
147
|
);
|
|
148
|
-
let disabledArr = currentSingleQuestion.jumps
|
|
149
|
-
(item) => item.choiceId !== selected.choiceId
|
|
150
|
-
|
|
148
|
+
let disabledArr = currentSingleQuestion.jumps
|
|
149
|
+
.filter((item) => item.choiceId !== selected.choiceId)
|
|
150
|
+
.filter((item) => target.toQuestionId !== item.toQuestionId);
|
|
151
151
|
if (target) {
|
|
152
152
|
if (this.recordQuestionId === selected.questionId) {
|
|
153
153
|
let resetItem = this.sortQuestions.find(
|