BlockList: Cannot read properties of undefined (reading 'variants') #15996
Labels
affected/v10
affected/v13
area/frontend
state/reproduced
state/sprint-candidate
We're trying to get this in a sprint at HQ in the next few weeks
type/bug
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
10.8.5
Bug summary
This was also tested on 13.2.2.
Sometimes when trying to submit changes to a BlockList item it throws an error clicking the button. If you cancel and discard your changes, open up the item again, make your changes and submit it, you are allowed to this time.
The error:
angular.js:15697 TypeError: Cannot read properties of undefined (reading 'variants')
at mapElementValues (umbraco.services.min.js?d=638479086250000000:1:154281)
at blockObject.retrieveValuesFrom (umbraco.services.min.js?d=638479086250000000:1:164536)
at Object.submit (umbraco.directives.min.js?d=638479086250000000:1:576152)
at vm.submitAndClose (umbraco.controllers.min.js?d=638479086250000000:1:184676)
at fn (eval at compile (angular.js:16548:15), :4:170)
at d. [as action] (angular.js:11517:22)
at UmbButtonController.clickButton (umbraco.directives.min.js?d=638479086250000000:1:47809)
at fn (eval at compile (angular.js:16548:15), :4:245)
at e (angular.js:29123:13)
at b.$eval (angular.js:19523:16)
Specifics
Tested in Firefox and Chrome using throttling, seeing the same behaviour.
Steps to reproduce
Repeating step 8-11 should reproduce the problem every time.
Expected result / actual result
Expected result: Being able to submit the new changes or not being able to open the item until the Save and publish action is done.
Actual result: Javascript error. See bug summary.
The text was updated successfully, but these errors were encountered: