Skip to content

Commit

Permalink
refactor: Code cleanup
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Fraser <[email protected]>
  • Loading branch information
ShrimpCryptid and frasercl authored Jan 6, 2025
1 parent 9146b87 commit 0822590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colorizer/utils/react_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export const useAnnotations = (): AnnotationState => {
const wrapFunctionInUpdate = <F extends (...args: any[]) => void>(fn: F): F => {
return <F>function (...args: any[]) {
const result = fn(...args);
setDataUpdateCounter((value) => {return value + 1;});
setDataUpdateCounter((value) => value + 1);
return result;
};
};
Expand Down

0 comments on commit 0822590

Please sign in to comment.