Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/BMDashboard/Issues/IssueDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import IssueHeader from './IssueHeader';

export default function IssueDashboard() {
const dispatch = useDispatch();
const issues = useSelector(state => state.bmIssues?.issues || []);
const issues = useSelector(state => state.bmIssues || []);
const darkMode = useSelector(state => state.theme.darkMode);

const [currentPage, setCurrentPage] = useState(1);
Expand Down
2 changes: 1 addition & 1 deletion src/components/BMDashboard/Issues/IssueHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function IssueHeader(props) {
<button className="more-button" type="button" label="More Button">
<MoreHorizontal size={20} />
</button>
<Link to="/bmdashboard/projects" style={{ textDecoration: 'none' }}>
<Link to="/projects" style={{ textDecoration: 'none' }}>
<button className="back-button" type="button">
Back to Projects
</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import { useParams } from 'react-router-dom';
import { useSelector } from 'react-redux';
import { useSelector, useDispatch } from 'react-redux';
import { useEffect } from 'react';
import { Container, Row, Col } from 'reactstrap';
import LogBar from './LogBar';
import RentedToolsDisplay from './RentedTools/RentedToolsDisplay';
import MaterialsDisplay from './Materials/MaterialsDisplay';
import ProjectLog from './ProjectLog';
import styles from './ProjectDetails.module.css';
import { fetchBMProjects } from '../../../../actions/bmdashboard/projectActions';

function ProjectDetails() {
const dispatch = useDispatch();
useEffect(() => {
dispatch(fetchBMProjects());
}, []);
const { projectId } = useParams();
const darkMode = useSelector(state => state.theme.darkMode);
const projects = useSelector(state => state.bmProjects) || [];
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export function Header(props) {
<DropdownItem tag={Link} to="/bmdashboard/equipment" className={fontColor} disabled={headerDisabled}>
Equipment/Tool List
</DropdownItem>
<DropdownItem tag={Link} to="/bmdashboard/Issue" className={fontColor} disabled={headerDisabled}>
<DropdownItem tag={Link} to="/bmdashboard/issues" className={fontColor} disabled={headerDisabled}>
Issue
</DropdownItem>
<DropdownItem tag={Link} to="/bmdashboard/lessonform/" className={fontColor} disabled={headerDisabled}>
Expand Down
Loading