Skip to content

Commit e36124f

Browse files
arthurdennerCompuIves
authored andcommitted
fix(github): Resetting error state when changing the repo title (codesandbox#1139)
1 parent eca9762 commit e36124f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/app/src/app/store/modules/git/sequences.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { set, when, wait } from 'cerebral/operators';
22
import { state, props, string } from 'cerebral/tags';
33
import * as actions from './actions';
44

5-
export const changeRepoTitle = set(state`git.repoTitle`, props`title`);
5+
export const changeRepoTitle = [
6+
set(state`git.repoTitle`, props`title`),
7+
set(state`git.error`, null),
8+
];
69

710
export const changeSubject = set(state`git.subject`, props`subject`);
811

0 commit comments

Comments
 (0)