Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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="customer?.addresses.find(a => a.id == {{ request()->id }})"
check="(data) => data.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="customer.orders.items[0]"
check="(data) => data.customer.orders.items[0]"
:callback="async (variables, response) => {return await updateOrder(variables, {data: response.data.customer.orders.items})}"
>
<div slot-scope="{ order: data }" v-if="order">
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="customer.orders.items[0]"
check="(data) => data.customer.orders.items[0]"
cache="orderdetail{{ $id }}"
>
<x-rapidez-ct::card v-if="data" slot-scope="{ data }">
Expand Down
Loading