Skip to content

Commit

Permalink
fix(setting-web-ui): zero value for index err
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Jul 7, 2024
1 parent c6af4de commit 47556c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const SettingClashWeb = () => {

if (!list) return;

if (editIndex) {
if (editIndex !== null) {
list[editIndex] = editString;
} else {
list.push(editString);
Expand Down

0 comments on commit 47556c4

Please sign in to comment.