mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
Ensure iframely fallback is not executed for connected unfurl integration (#8995)
* Ensure iframely fallback is not executed for connected unfurl integration * tsc
This commit is contained in:
1 parent
03a0f54236
commit
5789d65bf5
5 files changed
+16
-11
No files matched your search
@@ -206,12 +206,12 @@ export class GitHub {
|
||||
);
|
||||
const { data } = await client.requestResource(resource);
|
||||
if (!data) {
|
||||
return;
|
||||
return { error: "Resource not found" };
|
||||
}
|
||||
return { ...data, type: resource.type };
|
||||
} catch (err) {
|
||||
Logger.warn("Failed to fetch resource from GitHub", err);
|
||||
return;
|
||||
return { error: err.message || "Unknown error" };
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user