8000 remove unneeded code · homebaseio/homebase-react@fa81b86 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa81b86

Browse files
< 8000 div class="Box-sc-g0xbh4-0 dpBUfI color-fg-muted">committed
remove unneeded code
1 parent 33535ac commit fa81b86

File tree

1 file changed

+3
-6
lines changed
  • examples/typescript-supabase-todo/src

1 file changed

+3
-6
lines changed

examples/typescript-supabase-todo/src/Todos.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,9 @@ const DataSaver = (user) => {
7171
console.log(res.data)
7272
res.data.forEach(function(d){
7373
let entity_name = d[1].split('/')[0].slice(1)
74-
console.log(entity_name)
75-
if (entity_name !== "created_at"){
76-
let attr = d[1].split('/')[1]
77-
let transaction = [{[entity_name]: {id: d[0], [attr]: d[2]}} ]
78-
client.transactSilently(transaction)
79-
}
74+
let attr = d[1].split('/')[1]
75+
let transaction = [{[entity_name]: {id: d[0], [attr]: d[2]}} ]
76+
client.transactSilently(transaction)
8077
});
8178
}
8279
});

0 commit comments

Comments
 (0)
0