From be18fafc7ad2bb9ae99f27797a2947afd612364a Mon Sep 17 00:00:00 2001 From: Kent Wang Date: Tue, 19 Nov 2024 17:34:30 +0800 Subject: [PATCH] 1.fix comments --- .../editors/environment-key-value-editor/key-value-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/insomnia/src/ui/components/editors/environment-key-value-editor/key-value-editor.tsx b/packages/insomnia/src/ui/components/editors/environment-key-value-editor/key-value-editor.tsx index 3b3cfb210ce..3761adaf129 100644 --- a/packages/insomnia/src/ui/components/editors/environment-key-value-editor/key-value-editor.tsx +++ b/packages/insomnia/src/ui/components/editors/environment-key-value-editor/key-value-editor.tsx @@ -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)] );