Răsfoiți Sursa

Merge pull request #1467 from porter-dev/master

Add folder path if not exists when selecting procfile -> staging
Nicolas Frati 4 ani în urmă
părinte
comite
a2dba34045
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      dashboard/src/components/repo-selector/ContentsList.tsx

+ 6 - 0
dashboard/src/components/repo-selector/ContentsList.tsx

@@ -317,6 +317,12 @@ export default class ContentsList extends Component<PropsType, StateType> {
                 <Row
                   key={i}
                   onClick={() => {
+                    if (
+                      !this.props.folderPath ||
+                      this.props.folderPath === ""
+                    ) {
+                      this.props.setFolderPath("./");
+                    }
                     this.props.setProcfileProcess(process);
                   }}
                   isLast={processes.length - 1 === i}