Repository navigation
Commit f3508bf
committed
fix(app): guard message memos against undefined state on deep-link render
When navigating directly to a deep-linked session URL, the messages
store may not be populated yet. Guard userMessages and
visibleUserMessages memos with messagesReady() and null checks to
prevent TypeError when calling .filter() on undefined.
Fixes anomalyco#215691 parent cd8e8a9 commit f3508bf
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
472 | 476 | | |
473 | 477 | | |
| 478 | + | |
| 479 | + | |
474 | 480 | | |
475 | | - | |
476 | | - | |
| 481 | + | |
| 482 | + | |
477 | 483 | | |
478 | 484 | | |
479 | 485 | | |
| |||
1497 | 1503 | | |
1498 | 1504 | | |
1499 | 1505 | | |
1500 | | - | |
| 1506 | + | |
1501 | 1507 | | |
1502 | 1508 | | |
1503 | 1509 | | |
| |||
0 commit comments