Skip to content

Commit

Permalink
fix state save bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Emslie committed Oct 27, 2021
1 parent 00e0365 commit e47328a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/block-duplicate-project-admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class BlockDuplicatesAdmin extends React.Component<
}
);

if (includeTitle) {
if (includeTitle != null) {
this.setState((prevState: IBlockDuplicatesAdminState) => {
prevState.IncludeTitle = includeTitle;
return prevState;
Expand All @@ -93,7 +93,7 @@ export default class BlockDuplicatesAdmin extends React.Component<
}
);

if (includeDesciption) {
if (includeDesciption != null) {
this.setState((prevState: IBlockDuplicatesAdminState) => {
prevState.IncludeDesciption = includeDesciption;
return prevState;
Expand All @@ -104,7 +104,7 @@ export default class BlockDuplicatesAdmin extends React.Component<
scopeType: 'Default',
});

if (sameType) {
if (sameType != null) {
this.setState((prevState: IBlockDuplicatesAdminState) => {
prevState.SameType = sameType;
return prevState;
Expand Down

0 comments on commit e47328a

Please sign in to comment.