Skip to content

Commit

Permalink
fix: StepListProps 속성이 없어서 발생하는 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
soi-ha committed Aug 21, 2024
1 parent 5c91543 commit a040b25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/StepList/StepList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import useRequestGetStepList from '@hooks/queries/useRequestGetStepList';
import Step from './Step';

interface StepListProps {
isAddEditableItem: boolean;
setIsAddEditableItem: React.Dispatch<React.SetStateAction<boolean>>;
isAddEditableItem?: boolean;
setIsAddEditableItem?: React.Dispatch<React.SetStateAction<boolean>>;
}

const StepList = ({isAddEditableItem, setIsAddEditableItem}: StepListProps) => {
const StepList = ({isAddEditableItem = false, setIsAddEditableItem = () => {}}: StepListProps) => {
const {data: stepListData} = useRequestGetStepList();
const [stepList, setStepList] = useState<(MemberStep | BillStep)[]>([]);
const existIndexInStepList = stepList.map((step, index) => ({...step, index}));
Expand Down

0 comments on commit a040b25

Please sign in to comment.