Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: A bug where the calendar, publication record, and facebook option might be empty (#272)
Gao41645959ef9f
diff --git a/project/web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/RecordCore.tsx b/project/web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/RecordCore.tsxindex 84151bed..44cebbca 100644--- a/project/web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/RecordCore.tsx+++ b/project/web/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/components/RecordCore.tsx@@ -163,7 +163,7 @@ const RecordCore = memo(// Facebook特殊处理:post类型不显示删除按钮if (publishRecord.accountType === PlatType.Facebook) {// 如果是post类型,不显示删除按钮- return publishRecord.option.facebook.content_category === 'post'+ return publishRecord.option?.facebook?.content_category === 'post'}// 其他已发布的平台,显示删除按钮