Commit 2ab3ec7
authored
When handleOpenAutoAdd() pre-fills the substring input with the alias
ID, the search was never executed — the modal opened with the query
visible but results empty, requiring a manual click of the Search button.
Fix: accept an optional query param in handleSearchModels() so the
caller can supply the value directly rather than relying on the React
state that hasn't updated yet. handleOpenAutoAdd() now passes the query
string inline, triggering results immediately on modal open.
Also move handleSearchModels above handleOpenAutoAdd so the const
reference is valid at the call site.
1 parent dbb7fe9 commit 2ab3ec7
1 file changed
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
202 | 196 | | |
203 | 197 | | |
204 | 198 | | |
205 | 199 | | |
206 | | - | |
| 200 | + | |
207 | 201 | | |
208 | 202 | | |
209 | 203 | | |
| |||
220 | 214 | | |
221 | 215 | | |
222 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
223 | 227 | | |
224 | 228 | | |
225 | 229 | | |
| |||
0 commit comments