unneeded cast

This commit is contained in:
Min Idzelis 2025-04-29 01:26:53 +00:00
parent cd8806eac0
commit 236973e329
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ describe('AssetViewerNavBar component', () => {
showShareButton: false, showShareButton: false,
preAction: () => {}, preAction: () => {},
onZoomImage: () => {}, onZoomImage: () => {},
onCopyImage: async () => {}, onCopyImage: () => {},
onAction: () => {}, onAction: () => {},
onRunJob: () => {}, onRunJob: () => {},
onPlaySlideshow: () => {}, onPlaySlideshow: () => {},

View File

@ -50,7 +50,7 @@
const handleUnlink = async () => { const handleUnlink = async () => {
const [still] = [...getOwnedAssets()]; const [still] = [...getOwnedAssets()];
if (still) { if (still) {
const motionId = (still as TimelineAsset).livePhotoVideoId; const motionId = still.livePhotoVideoId;
if (!motionId) { if (!motionId) {
return; return;
} }