Address toast error
This commit is contained in:
parent
55afe9e09a
commit
8c50496b74
@ -38,7 +38,7 @@
|
||||
"react-icons": "^5.5.0",
|
||||
"sanitize-html": "^2.14.0",
|
||||
"sharp": "^0.33.5",
|
||||
"sonner": "^2.0.0",
|
||||
"sonner": "^2.0.1",
|
||||
"swr": "^2.3.2",
|
||||
"ts-exif-parser": "^0.2.2",
|
||||
"use-debounce": "^10.0.4",
|
||||
|
||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@ -96,8 +96,8 @@ importers:
|
||||
specifier: ^0.33.5
|
||||
version: 0.33.5
|
||||
sonner:
|
||||
specifier: ^2.0.0
|
||||
version: 2.0.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
swr:
|
||||
specifier: ^2.3.2
|
||||
version: 2.3.2(react@19.0.0)
|
||||
@ -3859,8 +3859,8 @@ packages:
|
||||
resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
sonner@2.0.0:
|
||||
resolution: {integrity: sha512-3WeSl3WrEdhmdiTniT8JsCiVRVDOdn7k+4MG2drqzSMOeqrExm03HIwDBPKuq52JBqL7wRLG17QBIiSleUbljw==}
|
||||
sonner@2.0.1:
|
||||
resolution: {integrity: sha512-FRBphaehZ5tLdLcQ8g2WOIRE+Y7BCfWi5Zyd8bCvBjiW8TxxAyoWZIxS661Yz6TGPqFQ4VLzOF89WEYhfynSFQ==}
|
||||
peerDependencies:
|
||||
react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
|
||||
react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
|
||||
@ -8805,7 +8805,7 @@ snapshots:
|
||||
|
||||
slash@3.0.0: {}
|
||||
|
||||
sonner@2.0.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
sonner@2.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
dependencies:
|
||||
react: 19.0.0
|
||||
react-dom: 19.0.0(react@19.0.0)
|
||||
|
||||
@ -101,19 +101,9 @@ export default function PhotoForm({
|
||||
|
||||
if (changedKeys.length > 0) {
|
||||
const fields = convertFormKeysToLabels(changedKeys);
|
||||
// Delay toasts to avoid render sync issue
|
||||
const timeout = setTimeout(
|
||||
() => toastSuccess(`Updated EXIF fields: ${fields.join(', ')}`, 8000),
|
||||
100,
|
||||
);
|
||||
return () => clearTimeout(timeout);
|
||||
toastSuccess(`Updated EXIF fields: ${fields.join(', ')}`, 8000);
|
||||
} else {
|
||||
// Delay toasts to avoid render sync issue
|
||||
const timeout = setTimeout(
|
||||
() => toastWarning('No new EXIF data found'),
|
||||
100,
|
||||
);
|
||||
return () => clearTimeout(timeout);
|
||||
toastWarning('No new EXIF data found');
|
||||
}
|
||||
}
|
||||
}, [updatedExifData]);
|
||||
|
||||
@ -60,7 +60,7 @@ export const parseFujifilmMakerNote = (
|
||||
};
|
||||
|
||||
switch (tagType) {
|
||||
// Int8 (UInt8 read as Int8)
|
||||
// Int8 (UInt8 read as Int8 according to spec)
|
||||
case 1:
|
||||
sendNumbersForDataType(offset => bytes.readInt8(offset), 1);
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user