Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An exception is raised when you delete a question used within the "Copy choices from" property #4430

Closed
JaneSjs opened this issue Aug 8, 2023 · 0 comments
Assignees
Labels
bug user issue An issue or bug reported by users.
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Aug 8, 2023

Update:
The issue is fixed in the librray. Here is the related issue.

User Issue: T14170 - Issue with copy choices
https://surveyjs.answerdesk.io/internal/ticket/details/T14170


[Angular]
To reproduce the issue, run this demo and remove question1. This question is used as a choice source for the second question. The following exception appears:

index.js:27 ERROR TypeError: Cannot read properties of null (reading 'text')
    at QuestionCarryForwardComponent_ng_template_0_Template (ɵcmp.js:5:26)
    at executeTemplate (core.mjs:12125:9)
    at refreshView (core.mjs:11988:13)
    at refreshEmbeddedViews (core.mjs:13038:17)
    at refreshView (core.mjs:12012:9)
    at refreshEmbeddedViews (core.mjs:13038:17)
    at refreshView (core.mjs:12012:9)
    at refreshEmbeddedViews (core.mjs:13038:17)
    at refreshView (core.mjs:12012:9)
    at refreshEmbeddedViews (core.mjs:13038:17)
    at refreshView (core.mjs:12012:9)
    at refreshEmbeddedViews (core.mjs:13038:17)
    at refreshView (core.mjs:12012:9)
    at refreshEmbeddedViews (core.mjs:13038:17)
    at refreshView (core.mjs:12012:9)
    at detectChangesInternal (core.mjs:13269:9)
    at ViewRef$1.detectChanges (core.mjs:13766:9)
    at ElementComponent.detectChanges (survey-angular-ui.js:956:33)
    at eval (survey-angular-ui.js:943:16)
    at _ZoneDelegate.invokeTask (zone.js:406:31)
    at Object.onInvokeTask (core.mjs:26367:33)
    at _ZoneDelegate.invokeTask (zone.js:405:60)
    at Zone.runTask (zone.js:178:47)
    at drainMicroTaskQueue (zone.js:585:35)
    at ZoneTask.invokeTask [as invoke] (zone.js:491:21)
    at invokeTask (zone.js:1661:18)
    at globalCallback (zone.js:1692:29)
    at HTMLDivElement.globalZoneAwareCallback (zone.js:1725:16)

[React]
In a React app, the following exception occurs:

Uncaught TypeError: Cannot read properties of undefined (reading 'name')
    at t.render (survey-creator-react.min.js:7:20007)
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users. labels Aug 8, 2023
@JaneSjs JaneSjs changed the title Survey Creator for Angular - The Cannot read properties of null (reading 'text') exception is raised when removing a parent question used within the Copy choices from property The Cannot read properties of null (reading 'text') exception is raised when removing a parent question used within the Copy choices from property Aug 8, 2023
@andrewtelnov andrewtelnov self-assigned this Aug 8, 2023
@andrewtelnov andrewtelnov added this to the v1.9.102 milestone Aug 8, 2023
@RomanTsukanov RomanTsukanov changed the title The Cannot read properties of null (reading 'text') exception is raised when removing a parent question used within the Copy choices from property An exception is raised when you delete a question used within the "Copy choices from" property Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users.
Projects
None yet
Development

No branches or pull requests

3 participants