Skip to content

Commit f7003ba

Browse files
committed
fix
1 parent ef724b5 commit f7003ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/tasks-common/tasks-common.client.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ const App = () => {
1212
const firstTask = tasks[0];
1313
const lastTask = tasks[tasks.length - 1];
1414

15-
const onAction = useCallback(() => {
16-
if (!reactive) fetchTasks();
15+
const onAction = useCallback(async () => {
16+
if (!reactive) {
17+
await fetchTasks();
18+
}
1719
}, [reactive]);
1820

1921
const onAddClick = useCallback(async () => {

0 commit comments

Comments
 (0)