From 25a1e52391e4fd4faf09a4c159dc85c2e5ae52e8 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 4 Jun 2021 16:55:10 +0530 Subject: [PATCH] Fixed incorrect existing product check in modal refs https://github.com/TryGhost/Team/issues/715 --- ghost/admin/app/components/modal-product.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/modal-product.js b/ghost/admin/app/components/modal-product.js index 22370712e1..65a818d1a3 100644 --- a/ghost/admin/app/components/modal-product.js +++ b/ghost/admin/app/components/modal-product.js @@ -60,7 +60,7 @@ export default class ModalProductPrice extends ModalBase { } get isExistingProduct() { - return !!this.model.product; + return !this.model.product.isNew; } // TODO: rename to confirm() when modals have full Glimmer support