Skip to content

Commit

Permalink
chore: lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tethik committed Oct 14, 2024
1 parent 00ee5de commit f091851
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/src/resources/gram/v1/flows/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function deleteFlow(dal: DataAccessLayer) {
}

const id = parseInt(flowId);
const flow = await dal.flowService.getById(id);
const flow = await dal.flowService.getById(id);

if (!flow) {
res.status(404).json({ message: "Flow not found" });
Expand Down
4 changes: 1 addition & 3 deletions app/src/components/model/panels/left/DataFlowTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export function DataFlowTab() {
label="Label"
value={label}
disabled={readOnly}
onBlur={() =>
patchDataFlow({ label })
}
onBlur={() => patchDataFlow({ label })}
onChange={(e) => setLabel(e.target.value)}
onKeyDown={shouldBlur}
/>
Expand Down
5 changes: 4 additions & 1 deletion app/src/reducers/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ const mutatorReducer = (state = initialState, action) => {
editedDataflow.labelAnchor = 2;
}
// If there is an anchor and the label was just removed, remove the anchor.
else if (editedDataflow.label === "" && editedDataflow.labelAnchor !== -1) {
else if (
editedDataflow.label === "" &&
editedDataflow.labelAnchor !== -1
) {
// Delete anchor by removing points.
editedDataflow.points = [
...editedDataflow.points.slice(0, editedDataflow.labelAnchor),
Expand Down

0 comments on commit f091851

Please sign in to comment.