mirror of
https://github.com/immich-app/immich.git
synced 2026-02-13 12:27:56 +03:00
chore: pr feedback
This commit is contained in:
@@ -60,8 +60,12 @@
|
||||
};
|
||||
|
||||
const handleRotate = async () => {
|
||||
const current = Number(asset.exifInfo?.orientation);
|
||||
if (!current && current !== 0) {
|
||||
if (!asset.exifInfo?.orientation) {
|
||||
return;
|
||||
}
|
||||
|
||||
const current = Number(asset.exifInfo.orientation);
|
||||
if (Number.isNaN(current)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user