chore: Updates JS editor default text (#10912)

This commit is contained in:
Confidence Okoghenun 2022-02-18 02:41:12 +01:00 committed by GitHub
parent 39e28f4e1b
commit 7ebaa577a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [
{