Added precense check for scheduled posts before accessing error code (#29322)
* Added precense check for scheduled posts before accesing error code * Expliocitelly stated the undefined nature
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e5a4b1efba
Коммит
949e13725f
@@ -18,7 +18,7 @@ export type ScheduledPost = Omit<Draft, 'delete_at'> & SchedulingInfo & {
|
||||
|
||||
export type ScheduledPostsState = {
|
||||
byId: {
|
||||
[scheduledPostId: string]: ScheduledPost;
|
||||
[scheduledPostId: string]: ScheduledPost | undefined;
|
||||
};
|
||||
byTeamId: {
|
||||
[teamId: string]: string[];
|
||||
|
||||
Ссылка в новой задаче
Block a user