@overmap-ai/core 1.0.18-fix-misc-issues.3 → 1.0.18
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/dist/overmap-core.js
CHANGED
|
@@ -803,8 +803,7 @@ const useFileSrc = (props) => {
|
|
|
803
803
|
useEffect(() => {
|
|
804
804
|
if (!fileSha1 || !file)
|
|
805
805
|
return;
|
|
806
|
-
|
|
807
|
-
sdk.files.fetchFileFromUrl(encodedUrl, fileSha1).then((file2) => {
|
|
806
|
+
sdk.files.fetchFileFromUrl(file, fileSha1).then((file2) => {
|
|
808
807
|
setSrc(URL.createObjectURL(file2));
|
|
809
808
|
}).catch((reason) => {
|
|
810
809
|
console.error(`Failed to fetch file ${file} (${fileSha1}):
|