fixed
This commit is contained in:
parent
414e9fd85a
commit
26710aa662
@ -4,6 +4,15 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="Content-Security-Policy" content="
|
||||
default-src 'self';
|
||||
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
|
||||
font-src 'self' https://fonts.gstatic.com data:;
|
||||
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com https://ssl.google-analytics.com;
|
||||
connect-src 'self' https://*.google-analytics.com https://*.analytics.google.com;
|
||||
img-src 'self' data: https: https://www.google-analytics.com;
|
||||
frame-src 'self' https://www.google.com;
|
||||
" />
|
||||
<title>IIP Survey Platform</title>
|
||||
<style>
|
||||
html {
|
||||
|
||||
@ -75,7 +75,7 @@ const Footer = () => {
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div> {/* ✅ properly closed main content div */}
|
||||
</div> {/* properly closed main content div */}
|
||||
|
||||
{/* Bottom Divider */}
|
||||
<div className="border-t border-gray-200" />
|
||||
|
||||
@ -308,9 +308,12 @@ React.useEffect(() => {
|
||||
setLoading(true);
|
||||
|
||||
// First, get the current quarter and year
|
||||
// const response = await apiClient.get('/admin_dashboard');
|
||||
const response = await apiClient.get(`/admin_dashboard?${params.toString()}`, { withCredentials: true });
|
||||
const currentQuarter = response?.data?.selected_quarter || 'Q1';
|
||||
const params = new URLSearchParams();
|
||||
const response = await apiClient.get('/admin_dashboard', {
|
||||
params,
|
||||
withCredentials: true
|
||||
});
|
||||
const currentQuarter = response?.data?.selected_quarter ;
|
||||
// const currentQuarter = 'All';
|
||||
const currentYear = response?.data?.selected_year || new Date().getFullYear().toString();
|
||||
// const currentYear = 'All';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user