mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Fixing a race condition when deleting the only workspace (#1997)
Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
This commit is contained in:
parent
e0d20e5c2c
commit
2f8b0b6602
@ -337,7 +337,7 @@ class Wrapper extends React.PureComponent<Props, State> {
|
||||
message: 'Since you deleted your only workspace, a new one has been created for you.',
|
||||
});
|
||||
|
||||
models.workspace.create({ name: 'Insomnia' });
|
||||
await models.workspace.create({ name: 'Insomnia' });
|
||||
}
|
||||
|
||||
await models.workspace.remove(activeWorkspace);
|
||||
|
Loading…
Reference in New Issue
Block a user