diff --git a/frontend/src/pages/Products/Products.js b/frontend/src/pages/Products/Products.js index 409afe9..3651a90 100644 --- a/frontend/src/pages/Products/Products.js +++ b/frontend/src/pages/Products/Products.js @@ -183,6 +183,8 @@ const Products = () => { ? 'bg-blue-100 text-blue-800' : product.productType === 'granular' ? 'bg-green-100 text-green-800' + : product.productType === 'seed' + ? 'bg-yellow-100 text-yellow-800' : 'bg-gray-100 text-gray-800' }`}> {product.productType ? @@ -267,7 +269,8 @@ const Products = () => { ); - if (loading) { + // Avoid blowing away the modal while background loading occurs + if (loading && !showCreateForm && !showEditForm) { return (