Fixed some issues with the logic in arePagePrerequisitesValid
This commit is contained in:
parent
4773814a07
commit
200dcd12e4
2 changed files with 2 additions and 9 deletions
|
|
@ -75,10 +75,8 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
arePagePrerequisitesValid() {
|
||||
if (store.getters.order.damage.isRepair || store.getters.order.lineItems.glassParts.length > 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
store.getters.order.lineItems.glassParts = [];
|
||||
return store.getters.order.damage.isRepair || (store.getters.order.lineItems?.glassParts != null && store.getters.order.lineItems.glassParts.length > 0);
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
|
|
@ -25,11 +25,6 @@ import { applicationConfig } from "../constants/application-config";
|
|||
import quote from "@/layouts/quote/quote.vue";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/quote", // This is a temporary route for testing.
|
||||
name: "quote",
|
||||
component: quote,
|
||||
},
|
||||
{
|
||||
path: "/",
|
||||
name: "root",
|
||||
|
|
|
|||
Loading…
Reference in a new issue