Altinn / Altinn/app-frontend-react

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

Open
#2,894 0 comments 0 reactions 1 assignee Claimed by @bjosttveit View on GitHub
kind/bug
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.