Commit 77eae69
committed
fix(servers): stop auto-inserting duplicate draft on custom server add
The 'Add Custom Server' menu always opened ConfigEditorModal with
insertNewServer=true, which unconditionally injected a blank
'New Custom Server' draft into the space JSON on open. Combined
with the existing manual 'Insert Server' toolbar button (same
addCustomServerDraft call), saving would persist both the intended
server and the untouched draft as duplicate entries.
Remove the auto-insert-on-open path; the toolbar button already
covers inserting a draft on demand.
Signed-off-by: crimsonsunset <jsangio1@gmail.com>1 parent eb5ae35 commit 77eae69
2 files changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
94 | | - | |
95 | | - | |
| 92 | + | |
96 | 93 | | |
97 | 94 | | |
98 | | - | |
99 | | - | |
| 95 | + | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
| |||
105 | 101 | | |
106 | 102 | | |
107 | 103 | | |
108 | | - | |
| 104 | + | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2689 | 2689 | | |
2690 | 2690 | | |
2691 | 2691 | | |
2692 | | - | |
2693 | 2692 | | |
2694 | 2693 | | |
2695 | 2694 | | |
| |||
0 commit comments