OptionsUI: Enabled settings on the color picker (#64483)

This commit is contained in:
Ryan McKinley
2023-03-09 01:53:18 -08:00
committed by GitHub
parent 9f08d05498
commit 5f7bc54fba
3 changed files with 43 additions and 20 deletions

View File

@@ -58,10 +58,10 @@ export const AnnotationSettingsEdit = ({ editIdx, dashboard }: Props) => {
});
};
const onColorChange = (color: string) => {
const onColorChange = (color?: string) => {
onUpdate({
...annotation,
iconColor: color,
iconColor: color!,
});
};