Skip to content

Commit

Permalink
Revert "FIO-7800: fixed an issue where server returns an error when s…
Browse files Browse the repository at this point in the history
…ubmitting form with editgrid" (#5483)
  • Loading branch information
lane-formio authored Jan 30, 2024
1 parent c73cfd7 commit f023cbd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/_classes/component/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -1326,11 +1326,7 @@ export default class Component extends Element {
detach() {
// First iterate through each ref and delete the component so there are no dangling component references.
_.each(this.refs, (ref) => {
if (!ref) {
return;
}

if (window && typeof ref === window.NodeList) {
if (typeof ref === NodeList) {
ref.forEach((elem) => {
delete elem.component;
});
Expand Down

0 comments on commit f023cbd

Please sign in to comment.