Skip to content

Commit fb13ea9

Browse files
committed
Increase debounce time
1 parent f8e3f4a commit fb13ea9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/api/apollo/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ResultType } from './generated/graphql';
99
import localResolvers from './resolvers';
1010

1111
const PLAYGROUND_API = process.env.PLAYGROUND_API;
12-
const DEFAULT_DEBOUNCE_TIMEOUT = 500;
12+
const DEFAULT_DEBOUNCE_TIMEOUT = 1200; // Debounce time in ms
1313

1414
const cache = new InMemoryCache();
1515

src/providers/Project/projectMutator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ export default class ProjectMutator {
214214
this.client.writeData({
215215
id: `TransactionTemplate:${templateId}`,
216216
data: {
217-
script: script,
218-
title: title,
217+
script,
218+
title,
219219
},
220220
});
221221

@@ -231,8 +231,8 @@ export default class ProjectMutator {
231231
variables: {
232232
projectId: this.projectId,
233233
templateId: templateId,
234-
script: script,
235-
title: title,
234+
script,
235+
title,
236236
},
237237
context: {
238238
debounceKey: key,

0 commit comments

Comments
 (0)