Commit 1555252
authored
fix: handle undefined model in createMessagePair function (open-webui#20663)
- Add a null check when looking up model to prevent JavaScript error when trying to add a message pair in a chat with an invalid/corrupt model ID.1 parent de0cbb9 commit 1555252
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1285 | 1290 | | |
1286 | 1291 | | |
1287 | 1292 | | |
| |||
0 commit comments