schedule is for monthinfo periods

This commit is contained in:
Dobromir Popov
2024-04-20 12:09:30 +03:00
parent 2c062be8a1
commit b535d0853a
6 changed files with 24 additions and 11 deletions

View File

@ -22,7 +22,8 @@ const SchedulePage = () => {
useEffect(() => {
const fetchHtmlContent = async () => {
try {
const response = await axiosInstance.get('/api/schedule?year=2024&month=1', { responseType: 'text' });
// const response = await axiosInstance.get('/api/schedule?year=2024&month=1', { responseType: 'text' });
const response = await axiosInstance.get('/api/schedule', { responseType: 'text' });
setHtmlContent(response.data); // Set the fetched HTML content in state
} catch (error) {
console.error("Failed to fetch schedule:", error);