fix (video popup): upload date error on newly uploaded videos#3641
fix (video popup): upload date error on newly uploaded videos#3641
Conversation
WalkthroughSafely computes videoUploadDate from media.date (tries toISOString, falls back to Date parsing; on error leaves undefined) and ensures videoDescription defaults to an empty string; URL-change reset logic updated to use the guarded date extraction. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Pull request artifacts
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/block/video-popup/edit.js(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: PHP 8.2 and WP latest
- GitHub Check: PHP 7.3 and WP latest
- GitHub Check: PHP 8.2 and WP 6.7.2
- GitHub Check: PHP 8.2 and WP 6.6.2
- GitHub Check: PHP 8.2 and WP 6.5.5
- GitHub Check: PHP 7.3 and WP 6.5.5
- GitHub Check: build
🔇 Additional comments (1)
src/block/video-popup/edit.js (1)
201-202: Good fallback handling forvideoDescription.The use of
media.description || ''correctly ensures the attribute defaults to an empty string when the description is missing. However, ensure thevideoUploadDatelogic in lines 186-196 is fixed so that it consistently provides an empty string fallback as well.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.