diff options
| author | Sophie Zhang <sophie_zhang@brown.edu> | 2023-08-27 13:22:54 -0400 |
|---|---|---|
| committer | Sophie Zhang <sophie_zhang@brown.edu> | 2023-08-27 13:22:54 -0400 |
| commit | aa3dc83bdd723db2597dc36fe09ae288ce3641da (patch) | |
| tree | 306969b925e3535b46ecbc07399f8dc2544ec4d5 /src/client | |
| parent | 778ea6d9d88c06e5584b5b4d4989a011ad5424c2 (diff) | |
validating issues
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
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<GPTPopupProps> { this.sidebarId = id; }; - @observable private imgTargetDoc: Doc | undefined; @action @@ -119,13 +118,15 @@ export class GPTPopup extends React.Component<GPTPopupProps> { 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); }; |
