Keine anderen Artikel vorhanden.
+ ) : (
+
+ {otherProducts.map(other => {
+ const checked = (exclField.value || []).includes(other.id)
+ return (
+
+ {
+ const currentVal = exclField.value || []
+ if (checkedState) {
+ exclField.onChange([...currentVal, other.id])
+ } else {
+ exclField.onChange(currentVal.filter(id => id !== other.id))
+ }
+ }}
+ />
+
+
+ )
+ })}
+
+ )}
+