fix: extension route check

This commit is contained in:
Jean-Baptiste Pasquier 2021-05-03 08:46:02 +00:00
parent 6286c5a519
commit 7d4378b862

View File

@ -23,7 +23,7 @@
include partials/project/page-project-picture.pug include partials/project/page-project-picture.pug
if component.extensions if component.extensions
for extension of component.extensions for extension of component.extensions
if extension.type == 'invoices' if extension.type == 'invoices' && extension.route
div( div(
id=`${extension.route}-invoices` id=`${extension.route}-invoices`
hidden hidden
@ -51,7 +51,7 @@ nav.jsRightMenu.segment.sm-hidden.text-disable-selection.sidebar.whitespace-norm
solid-route(name=`${component.route}-picture` use-id) solid-route(name=`${component.route}-picture` use-id)
if component.extensions if component.extensions
for extension of component.extensions for extension of component.extensions
if extension.type == 'invoices' if extension.type == 'invoices' && extension.route
solid-route.segment.full(name=`${extension.route}-invoices` use-id) solid-route.segment.full(name=`${extension.route}-invoices` use-id)
li.segment.full.padding-medium li.segment.full.padding-medium
span.icon.ci-receipt.icon-xlarge.margin-right-medium span.icon.ci-receipt.icon-xlarge.margin-right-medium