[Cdm] GroupRemoved for one child document

Hi,

Our project is facing a problem that cdm create an empty document when using detached-repeat => it create a empty row on the table (see 2 images by redux-devtool)


We tried to upgrade a12 version to 2023.06-ext8 but it doesn’t help.

While waiting for an official solution, we’re considering a workaround: removing the empty document by using a saga to hook into the dg/END_TRANSACTION action.
However, A12 doesn’t seem to support an action to remove the child document. I tried using CddActions.changeCddDocument with GroupRemoved, but it didn’t help.

Is there a way to remove the empty document on the client side to ensure the UI/detached-repeat table doesn’t display an empty row?

Thank you.

As discussed, we’re trying with dg/REMOVE_LINK action

Thank you @loi-risen-dale,
Using action DgActions.removeLink is working now.
This action will clear all data related in dataholder, include cddState, changeLog and documentGraph