New to using the Trello API and I'm running into an issue with the card buttons and using it to delete the card.
https://glitch.com/edit/#!/360-delete-card?path=public/index.html
The button works and shows up without issue in Trello and it does delete the cards. The problem I'm having is due to when the card has been added.
If the card was created prior to the implementation of the Power Up it deletes without issue and the card pop up window disappears. However, if the card was created after the Power Up was enabled then the pop up window doesn't disappear, it does delete though. If I close the pop up window of the card then the card is gone.
Would anyone be able to help me fix it so that the card pop up disappears when you delete no matter when the card was created?