fix
This commit is contained in:
@@ -32,7 +32,8 @@ export default function StockManagementPage() {
|
||||
|
||||
const fetchDataAsync = async () => {
|
||||
try {
|
||||
const fetchedProducts = await fetchProductData("/api/products", authToken);
|
||||
const apiUrl = `${process.env.NEXT_PUBLIC_API_URL}/products`;
|
||||
const fetchedProducts = await fetchProductData(apiUrl, authToken);
|
||||
setProducts(fetchedProducts);
|
||||
|
||||
// Initialize stock values
|
||||
|
||||
Reference in New Issue
Block a user