From 7ebaa577a347a21d2d8a05f89778e82af990d43b Mon Sep 17 00:00:00 2001 From: Confidence Okoghenun Date: Fri, 18 Feb 2022 02:41:12 +0100 Subject: [PATCH] chore: Updates JS editor default text (#10912) --- app/client/src/utils/JSPaneUtils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/utils/JSPaneUtils.tsx b/app/client/src/utils/JSPaneUtils.tsx index 4716183b71..5ecc521f67 100644 --- a/app/client/src/utils/JSPaneUtils.tsx +++ b/app/client/src/utils/JSPaneUtils.tsx @@ -182,7 +182,7 @@ export const createDummyJSCollectionActions = ( organizationId: string, ) => { const body = - "export default {\n\tmyVar1: [],\n\tmyVar2: {},\n\tmyFun1: () => {\n\t\t//write code here\n\t},\n\tmyFun2: async () => {\n\t\t//do async stuff here or use JS promises\n\t}\n}"; + "export default {\n\tmyVar1: [],\n\tmyVar2: {},\n\tmyFun1: () => {\n\t\t//write code here\n\t},\n\tmyFun2: async () => {\n\t\t//use async-await or promises\n\t}\n}"; const actions = [ {