fix: introduce fix for undefined id on dialog close when adding a connection
This commit is contained in:
@@ -140,8 +140,7 @@ function ChooseConnectionSubstep(props) {
|
||||
const handleAddConnectionClose = React.useCallback(
|
||||
async (response) => {
|
||||
setShowAddConnectionDialog(false);
|
||||
const connectionId = response?.createConnection.id;
|
||||
|
||||
const connectionId = response?.createConnection?.id;
|
||||
if (connectionId) {
|
||||
await refetch();
|
||||
onChange({
|
||||
|
Reference in New Issue
Block a user