1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 21:29:43 +02:00

ref: Little change for consistency

This commit is contained in:
Maksim Eltyshev 2022-10-03 13:12:16 +02:00
parent a5e8c5feec
commit 84e67f293c
2 changed files with 13 additions and 4 deletions

View file

@ -84,7 +84,15 @@ const LabelsStep = React.memo(
if (step) {
switch (step.type) {
case StepTypes.ADD:
return <AddStep onCreate={onCreate} onBack={handleBack} initialValue={search} />;
return (
<AddStep
defaultData={{
name: search,
}}
onCreate={onCreate}
onBack={handleBack}
/>
);
case StepTypes.EDIT: {
const currentItem = items.find((item) => item.id === step.params.id);