Skip to content
Snippets Groups Projects
Unverified Commit 5353a912 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Supress invalid props to a div element (#16841)

This happens because StaticParameterWidgetList is used an alternative to
SortableParameterWidget. The sorting handlers make sense for the latter
but not for the former.
parent ab50eaaa
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,12 @@ type Props = {
setEditingParameter?: (parameterId: ParameterId) => void,
};
const StaticParameterWidgetList = ({ children, ...props }) => {
const StaticParameterWidgetList = ({
children,
onSortStart,
onSortEnd,
...props
}) => {
return <div {...props}>{children}</div>;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment