Skip to content

Commit

Permalink
fix(flow): reverse flow name condition
Browse files Browse the repository at this point in the history
  • Loading branch information
EFF committed Jan 14, 2022
1 parent 40a117f commit a613812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/studio-be/src/core/dialog/flow/flow-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export class ScopedFlowService {

private isFlowNameValid = async (name: string): Promise<Boolean> => {
const flowFiles = await this.ghost.directoryListing(FLOW_DIR, '*.json')
return flowFiles.findIndex(f => f.toLowerCase() === name.toLowerCase()) !== -1
return flowFiles.findIndex(f => f.toLowerCase() === name.toLowerCase()) === -1
}

private notifyChanges = async (modification: FlowModification) => {
Expand Down

0 comments on commit a613812

Please sign in to comment.