@underverse-ui/underverse 1.0.181 → 1.0.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-reference.json +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21760,11 +21760,12 @@ function ImageUpload({
|
|
|
21760
21760
|
if (validFiles.length === 0) return;
|
|
21761
21761
|
setUploading(true);
|
|
21762
21762
|
try {
|
|
21763
|
+
let idCount = 0;
|
|
21763
21764
|
for (const file of validFiles) {
|
|
21764
21765
|
const formData = new FormData();
|
|
21765
21766
|
formData.append("file", file);
|
|
21766
21767
|
const response = {
|
|
21767
|
-
id: Date.now(),
|
|
21768
|
+
id: Date.now() + idCount,
|
|
21768
21769
|
path: "",
|
|
21769
21770
|
url: URL.createObjectURL(file),
|
|
21770
21771
|
originalName: file.name,
|
|
@@ -21791,6 +21792,7 @@ function ImageUpload({
|
|
|
21791
21792
|
type: "success",
|
|
21792
21793
|
message: `"${file.name}" uploaded successfully`
|
|
21793
21794
|
});
|
|
21795
|
+
idCount++;
|
|
21794
21796
|
}
|
|
21795
21797
|
} catch (error) {
|
|
21796
21798
|
console.error("Upload error:", error);
|