Skip to content

Commit

Permalink
Bugfix: itens duplicados
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixoLucas42 committed Mar 16, 2024
1 parent 895e822 commit d627e9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ const done = [];
const blocked = [];
const cardsgo_url = window.location.protocol + "//" + window.location.host

function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}

function removeItem(list, item) {
list.splice(list.indexOf(item.detail[1].id), 1);
}
Expand Down Expand Up @@ -92,7 +96,8 @@ setTimeout(() => {
createTriggers();
}, 1000);

function saveCards(){
async function saveCards(){
await sleep(2000);
let queryString = window.location.search;
let urlParams = new URLSearchParams(queryString);
let user = urlParams.get('project');
Expand Down

0 comments on commit d627e9c

Please sign in to comment.