fix: wrong month stats and db cache undefined handling
This commit is contained in:
parent
ee5d986972
commit
ec1ea5cfe8
4 changed files with 54 additions and 67 deletions
|
@ -10,8 +10,8 @@ import { Title } from "@solidjs/meta";
|
|||
export const Overview: Component<RouteSectionProps> = () => {
|
||||
const [allSelfSentMessagesCount] = createResource(() => overallSentMessagesQuery(SELF_ID));
|
||||
|
||||
const [roomOverview] = createResource<RoomOverview[]>(async () => {
|
||||
return (await allThreadsOverviewQuery()).rows.map((row) => {
|
||||
const [roomOverview] = createResource<RoomOverview[] | undefined>(async () => {
|
||||
return (await allThreadsOverviewQuery())?.map((row) => {
|
||||
const isGroup = row.title !== null;
|
||||
|
||||
let name = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue