Fixed shopping list to stock worfklow skip button (fixes #1248)

This commit is contained in:
Bernd Bestel
2021-01-02 20:54:31 +01:00
parent bd21e3a8d6
commit 97fdb0553c

View File

@@ -297,7 +297,7 @@ $(window).on("message", function(e)
Grocy.ShoppingListToStockWorkflowCurrent++;
if (Grocy.ShoppingListToStockWorkflowCurrent <= Grocy.ShoppingListToStockWorkflowCount)
{
$(".shopping-list-stock-add-workflow-list-item-button")[1].click();
$(".shopping-list-stock-add-workflow-list-item-button")[Grocy.ShoppingListToStockWorkflowCurrent - 1].click();
}
else
{