Skip to content

Commit

Permalink
1.fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cwangsmv committed Nov 19, 2024
1 parent 7a8b3e6 commit be18faf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const ItemButton = (props: ButtonProps & { tabIndex?: number }) => {
export const EnvironmentKVEditor = ({ data, onChange }: EditorProps) => {
const kvPairs: EnvironmentKvPairData[] = useMemo(
() => data.length > 0 ? [...data] : [createNewPair()],
// ensure same array data will not generate duplicate kvPairs to avoid flash issue
// Ensure same array data will not generate different kvPairs to avoid flash issue
// eslint-disable-next-line react-hooks/exhaustive-deps
[JSON.stringify(data)]
);
Expand Down

0 comments on commit be18faf

Please sign in to comment.