Версия 0.4.2 Отладочная печать в лог.
This commit is contained in:
parent
fca858beaa
commit
d4a6c17bdf
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "lawn-mowing-scheduler",
|
||||
"private": true,
|
||||
"version": "0.4.1",
|
||||
"version": "0.4.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "concurrently \"npm run server\" \"npm run client\"",
|
||||
|
@ -33,6 +33,7 @@ const ZoneCard: React.FC<ZoneCardProps> = ({
|
||||
};
|
||||
|
||||
const getStatusText = (zone: Zone) => {
|
||||
console.log(zone);
|
||||
if (zone.isNew) {
|
||||
return 'Еще не косилась';
|
||||
} else if (zone.isOverdue) {
|
||||
|
@ -6,8 +6,8 @@ const API_BASE = APP_MODE == "development" ? new URL('api', import.meta.env.VITE
|
||||
export const api = {
|
||||
async getZones(): Promise<Zone[]> {
|
||||
const response = await fetch(`${API_BASE}/zones`);
|
||||
console.log(`${APP_MODE}`);
|
||||
console.log(`${API_BASE}/zones`);
|
||||
//console.log(`${APP_MODE}`);
|
||||
//console.log(`${API_BASE}/zones`);
|
||||
if (!response.ok) throw new Error('Failed to fetch zones');
|
||||
return response.json();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user