Fakultas Ilmu Komputer UI

Commit 7d814938 authored by doanandreas's avatar doanandreas
Browse files

[GREEN] fix invalid download pdf url

parent 54d0818b
Pipeline #84065 passed with stages
in 17 minutes and 45 seconds
......@@ -8,13 +8,12 @@ import { layoutStyles } from 'styles';
import { useDownloadFiles } from 'hooks';
import { DietRecommendationResponse } from 'services/dietRecommendation/models';
import { FileType } from 'hooks/useDownloadFiles/schema';
import { API_BASE_URL } from 'env';
import { styles } from './styles';
import { Props } from './types';
const ReadOnlyDietRecommendation: FC<Props> = ({ children, data }) => {
const url = API_BASE_URL + data?.client_plan_meal;
const url = data?.client_plan_meal || '';
const { download, fileName } = useDownloadFiles(
url,
'rencana makan',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment