From aa3dc83bdd723db2597dc36fe09ae288ce3641da Mon Sep 17 00:00:00 2001 From: Sophie Zhang Date: Sun, 27 Aug 2023 13:22:54 -0400 Subject: validating issues --- src/client/views/pdf/GPTPopup/GPTPopup.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client/views/pdf') diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 8bf626d73..9b754588a 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -88,7 +88,6 @@ export class GPTPopup extends React.Component { this.sidebarId = id; }; - @observable private imgTargetDoc: Doc | undefined; @action @@ -119,13 +118,15 @@ export class GPTPopup extends React.Component { try { let image_urls = await gptImageCall(this.imgDesc); if (image_urls && image_urls[0]) { + // need to fix this const [result] = await Networking.PostToServer('/uploadRemoteImage', { sources: [image_urls[0]] }); + console.log('Result', result); + console.log('Client', result.accessPaths.agnostic.client); const source = Utils.prepend(result.accessPaths.agnostic.client); this.setImgUrls([[image_urls[0], source]]); } } catch (err) { console.log(err); - return ''; } GPTPopup.Instance.setLoading(false); }; -- cgit v1.2.3-70-g09d2