Skip to content

Commit

Permalink
Add addressIndex to loop (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored May 8, 2024
1 parent 2a4010f commit 8af437c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<x-rapidez-ct::popup title="My addresses">
<div class="grid sm:grid-cols-2 gap-5">
<template v-for="userAddress in data.customer.addresses">
<template v-for="userAddress, addressIndex in data.customer.addresses">
<graphql-mutation
query="mutation address($id: Int!, $default_billing: Boolean, $default_shipping: Boolean){ updateCustomerAddress ( id: $id, input: {default_billing: $default_billing, default_shipping: $default_shipping} ) { id } }"
:variables="userAddress"
Expand Down

0 comments on commit 8af437c

Please sign in to comment.