After manually testing, this doesn't seem to be an issue since items are now removed on the second click and re-added on the third click (whereas before it would remove and re-add on the second click).