From ed80dcf26cceacd4cd7aeb9fda8d038540768f9b Mon Sep 17 00:00:00 2001 From: Ananya Arun Date: Thu, 30 Sep 2021 04:14:27 -0700 Subject: [PATCH] Fetch logs to create paste and autofill them Summary: Added fetching logs for flipper and autofilling them too with the create paste link in the description of the support form. Changed the on click load form function to async to handle this as createPaste returns a promise and not the URL directly. Reviewed By: mweststrate Differential Revision: D31268006 fbshipit-source-id: 2a9ee08948198781adadd2b3b9c447f179db7d5c --- desktop/app/src/chrome/ConsoleLogs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/app/src/chrome/ConsoleLogs.tsx b/desktop/app/src/chrome/ConsoleLogs.tsx index 76e8da247..37fb5159d 100644 --- a/desktop/app/src/chrome/ConsoleLogs.tsx +++ b/desktop/app/src/chrome/ConsoleLogs.tsx @@ -22,7 +22,7 @@ import {DeleteOutlined} from '@ant-design/icons'; const MAX_LOG_ITEMS = 1000; -const logsAtom = createState([]); +export const logsAtom = createState([]); export const errorCounterAtom = createState(0); export function enableConsoleHook() {