1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Ensure relation exists prior to showing button

This commit is contained in:
David Bomba 2022-05-05 10:21:00 +10:00
parent b6350d323f
commit d58d0d0fd1

View File

@ -50,7 +50,7 @@
@if($quote->invoice_id)
@if($quote->invoice()->exists())
<div class="mt-5 sm:mt-0 sm:ml-6 flex justify-end">
<div class="inline-flex rounded-md shadow-sm">
<a class="button button-primary bg-primary" href="/client/invoices/{{ $quote->invoice->hashed_id }}">{{ ctrans('texts.view_invoice') }}</a>