Skip to content

Commit

Permalink
fixed next prerender issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharvari Deshmukh authored and Sharvari Deshmukh committed Mar 10, 2024
1 parent bb483c9 commit e426445
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/pages/dashboard/components/charts/barChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const BarChart = ({ title, labels, datasets }) => {

const data = {
labels,
datasets: datasets.map(dataset => ({
datasets: datasets?.map(dataset => ({
...dataset,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)'
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/dashboard/components/charts/pieChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const PieChart = ({ title, labels, datasets }) => {
datasets: [
{
label: 'Likes',
data: datasets[0].data,
backgroundColor: COLORS.slice(0, labels.length),
data: datasets ? datasets[0].data : [],
backgroundColor: COLORS.slice(0, labels?.length),
borderColor: 'rgb(54, 162, 235)'
}
],
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/dashboard/components/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Image from 'next/image'
import ucsdLogo from '../../../assets/images/ucsdLogo.png';

// IMPORT UTILS
import { logout } from '../actions/logout_actions';
import { logout } from '../../../utils/logout_actions';

const Navbar = () => {
return (
Expand Down
File renamed without changes.

0 comments on commit e426445

Please sign in to comment.