epam / epam/UUI

[DataTable]: ItemsMap value saved incorrectly into localstorage while using settingsKey prop in Editable Tables

Open
#2,793 1 comment 0 reactions 1 assignee Claimed by @dsv-sergey View on GitHub
bug
Dominant language
TypeScript
Stars
247
Forks
78
Avg merge
14h 27m
Merged PRs (30d)
15

Description

## Description

ItemsMap value saved incorrectly into localstorage. As a result, editable table brakes on attempt to restore usaved changes. Additionally, settingsKey could not be applied to such a form.

## Steps to Reproduce
1. Open [CodeSandbox example](https://codesandbox.io/p/sandbox/uui-forked-8w76l8?file=%2FExample.tsx%3A144%2C27).
2. Change editable table value in preview.
3. Reload preview.
4. Restore unsaved changes in preview.

## Actual result
Error "TypeError: value.items.set is not a function" appears.

![Image](https://github.com/user-attachments/assets/3f76295a-dc4e-4c96-9388-a182c47e2c6f)

## Expected result
Unsaved changes are restored.

## Environment

* UUI version: 5.13.3-rc.0
* Browser name: google chrome
* Operating System: Mac OS

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.