feat: add PowerInput component
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
c864a1062d
commit
d06f21c927
@@ -54,7 +54,6 @@ const createStepResolver = async (
|
||||
|
||||
const nextStepQueries = nextSteps.map(async (nextStep, index) => {
|
||||
await nextStep.$query().patchAndFetch({
|
||||
...nextStep,
|
||||
position: step.position + index + 1,
|
||||
});
|
||||
});
|
||||
|
@@ -26,7 +26,6 @@ const deleteStepResolver = async (
|
||||
|
||||
const nextStepQueries = nextSteps.map(async (nextStep) => {
|
||||
await nextStep.$query().patch({
|
||||
...nextStep,
|
||||
position: nextStep.position - 1,
|
||||
});
|
||||
});
|
||||
|
@@ -19,10 +19,7 @@ const updateFlowResolver = async (
|
||||
})
|
||||
.throwIfNotFound();
|
||||
|
||||
flow = await flow.$query().patchAndFetch({
|
||||
...flow,
|
||||
...params,
|
||||
});
|
||||
flow = await flow.$query().patchAndFetch(params);
|
||||
|
||||
return flow;
|
||||
};
|
||||
|
Reference in New Issue
Block a user