Oprava stahování HTML restaurací
This commit is contained in:
parent
0b8f00fa49
commit
ce41c14446
@ -53,9 +53,7 @@ const getDayOfWeekIndex = (date: Date) => {
|
||||
* @returns stažené HTML
|
||||
*/
|
||||
const getHtml = async (url: string): Promise<any> => {
|
||||
await axios.get(url).then(res => res.data).then(content => {
|
||||
return content
|
||||
});
|
||||
return await axios.get(url).then(res => res.data).then(content => content);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user