Fix reported statuses not showing up
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1494
This commit is contained in:
@ -10,7 +10,7 @@ export const makeEmojiMap = (emojis: any) => emojis.reduce((obj: any, emoji: any
|
||||
|
||||
/** Normalize entity ID */
|
||||
export const normalizeId = (id: any): string | null => {
|
||||
return typeof id === 'string' ? id : null;
|
||||
return z.string().nullable().catch(null).parse(id);
|
||||
};
|
||||
|
||||
export type Normalizer<V, R> = (value: V) => R;
|
||||
|
||||
Reference in New Issue
Block a user