Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fis bug causing two consecutive values to be deleted instead of just one

dominik-zeglen35ebc498e1c5
diff --git a/saleor/static/dashboard-next/components/ListField/ListField.tsx b/saleor/static/dashboard-next/components/ListField/ListField.tsx
index 172710996d..57bc5e036a 100644
--- a/saleor/static/dashboard-next/components/ListField/ListField.tsx
+++ b/saleor/static/dashboard-next/components/ListField/ListField.tsx
@@ -91,7 +91,7 @@ const ListField = decorate<
name: this.props.name,
value: this.props.values
.slice(0, index)
- .concat(this.props.values.slice(index + 1, -1))
+ .concat(this.props.values.slice(index + 1))
}
} as any);