Skip to content

Commit 2a47861

Browse files
committed
hotfix: refactor configuring_project skipping
1 parent 4ff545f commit 2a47861

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/App.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ const App = () => {
187187
}
188188
}, [send, edgeState]);
189189

190-
useEffect(() => {
191-
if (current.value === 'configuring_project' && fields.length === 0) {
192-
send('SUBMIT');
193-
}
194-
}, [current]);
190+
if (current.value === 'configuring_project' && fields.length === 0) {
191+
console.debug('no fields defined; skiping project configuration.');
192+
send('SUBMIT');
193+
return 'Loading...';
194+
}
195195

196196
const fork = async ({ accountId, apiToken, event }) => {
197197
const regex = /github.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)/;

0 commit comments

Comments
 (0)