Skip to content

Commit

Permalink
Rapidez v2 compatibility fixes (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbclaudio authored Jun 18, 2024
1 parent a4b2c77 commit a5fd914
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/account/address-edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<x-rapidez-ct::sections>
<graphql
query="{ customer { addresses { id firstname middlename lastname street city postcode country_code telephone company vat_id default_billing default_shipping } } }"
check="data?.customer?.addresses.find(a => a.id == {{ request()->id }})"
check="customer?.addresses.find(a => a.id == {{ request()->id }})"
redirect="{{ route('account.edit') }}"
>
<div v-if="data && data?.customer?.addresses" slot-scope="{ data }">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/account/order.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@section('account-content')
<graphql
query='@include('rapidez::account.partials.queries.order')'
check="data.customer.orders.items[0]"
check="customer.orders.items[0]"
cache="orderdetail{{ $id }}"
>
<div v-if="data" slot-scope="{ data }">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<graphql
query='@include('rapidez::account.partials.queries.order')'
check="data.customer.orders.items[0]"
check="customer.orders.items[0]"
cache="orderdetail{{ $id }}"
>
<x-rapidez-ct::card v-if="data" slot-scope="{ data }">
Expand Down

0 comments on commit a5fd914

Please sign in to comment.