Skip to content

Secondary data model does not get updated if it is only referenced through text resources #2894

@bjosttveit

Description

@bjosttveit

Description of the bug

An action button updates a secondary data model, but the text referencing this model does not get updated. The secondary data model is only referenced through text resources and not by any component data model bindings or expressions.

I have not been able to reproduce this yet, but I am quite confident that this happens because the model is not stored in the FormDataWrite provider but only the GlobalDataModelReaders. When the action button updates data models, it tries to update it in FormDataWrite, but since no components reference it through data model bindings or expressions, it does not exist there, so nothing happens.

Slack: https://altinn.slack.com/archives/C02EJ9HKQA3/p1736426068728089

Steps To Reproduce

.

Additional Information

No response

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

Projects

Status

📈 Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions