fix
This commit is contained in:
parent
a2fe29da7a
commit
58ce3642bb
File diff suppressed because one or more lines are too long
|
|
@ -25,6 +25,9 @@ export const loadApiProxyDef = async (_url: string, with_types: boolean) => {
|
|||
} else {
|
||||
script.src = `${base}/_prasi/load.js?url=${url}&v3&ts=${ts}`;
|
||||
}
|
||||
script.onerror = () => {
|
||||
done();
|
||||
};
|
||||
|
||||
if (!document.querySelector(`script[src="${script.src}"]`)) {
|
||||
d.body.appendChild(script);
|
||||
|
|
|
|||
|
|
@ -184,8 +184,11 @@ export const fetchSendDb = async (params: any, dburl: string) => {
|
|||
return result;
|
||||
}
|
||||
} catch (e) {
|
||||
if (result) {
|
||||
console.error("DBQuery failed:", result);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
if (cached.result) return cached.result;
|
||||
|
|
|
|||
|
|
@ -179,6 +179,10 @@ export const EdPropInstanceOptions: FC<{
|
|||
|
||||
if (res instanceof Promise) {
|
||||
res.then(metaFnCallback).catch((e) => {
|
||||
console.error(
|
||||
`ERROR in component ${meta.item.name}, prop ${name}:`
|
||||
);
|
||||
console.error(local.metaFn?.toString());
|
||||
console.error(e);
|
||||
});
|
||||
} else metaFnCallback(res);
|
||||
|
|
|
|||
|
|
@ -102,6 +102,10 @@ const injectSiteScript = () => {
|
|||
script.src = `${base_url}/_prasi/load.js?url=${base_url}&v3&ts=${ts}`;
|
||||
}
|
||||
|
||||
script.onerror = () => {
|
||||
done();
|
||||
};
|
||||
|
||||
if (!document.querySelector(`script[src="${script.src}"]`)) {
|
||||
d.body.appendChild(script);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue