Skip to content

Commit

Permalink
Fix list item removal issue with compute widget
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Jul 3, 2024
1 parent aa908a1 commit e1e426f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
* Update {@link currentValue} based on the current values.
*/
const updateCurrentValue = () => {
// Check if the `keyPath` is valid, otherwise a list item containing this compute field cannot
// be removed due to the `currentValue` update below
if (!Object.keys(valueMap).includes(keyPath)) {
return;
}
const newValue = (() => {
if (valueTemplate === '{{index}}') {
return getIndex() ?? '';
Expand Down

0 comments on commit e1e426f

Please sign in to comment.