Sqlx bug fixes (#816)

* fixed bugs in sqlx

* fixed bug with discard
This commit is contained in:
Srinath Narayanan
2021-05-22 01:49:07 +05:30
committed by GitHub
parent 9787a5ce7c
commit 3b6b987149
2 changed files with 4 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ export class SelfServeComponent extends React.Component<SelfServeComponentProps,
const { baselineValues } = this.state;
for (const key of currentValues.keys()) {
const baselineValue = baselineValues.get(key);
currentValues = currentValues.set(key, { ...baselineValue });
currentValues = currentValues.set(key, baselineValue ? { ...baselineValue } : baselineValue);
}
this.setState({ currentValues });
};