mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-11 00:30:06 +08:00
fix: pre-commit errors
This commit is contained in:
@@ -42,7 +42,12 @@ export const FlaggableElement = (props) => {
|
||||
label_map.set(flag.attributeName, sliderValues[i]);
|
||||
}
|
||||
});
|
||||
trigger({ message_id: props.message_id, post_id: props.post_id, label_map: Object.fromEntries(label_map), text: props.text });
|
||||
trigger({
|
||||
message_id: props.message_id,
|
||||
post_id: props.post_id,
|
||||
label_map: Object.fromEntries(label_map),
|
||||
text: props.text,
|
||||
});
|
||||
};
|
||||
const [checkboxValues, setCheckboxValues] = useState(new Array(TEXT_LABEL_FLAGS.length).fill(false));
|
||||
const [sliderValues, setSliderValues] = useState(new Array(TEXT_LABEL_FLAGS.length).fill(1));
|
||||
|
||||
Reference in New Issue
Block a user