1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix adding new namespace

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-01-12 09:06:25 +02:00
parent ecb93393d1
commit 09b52a59d8
No known key found for this signature in database
GPG Key ID: 5F465B5672372402

View File

@ -67,7 +67,7 @@ class NonInjectedAddNamespaceDialog extends React.Component<Props & Dependencies
const created = await this.props.createNamespace({ name: namespace }); const created = await this.props.createNamespace({ name: namespace });
onSuccess?.(created); onSuccess?.(created);
this.props.close(); this.props.model.close();
} catch (err) { } catch (err) {
Notifications.error(err); Notifications.error(err);
onError?.(err); onError?.(err);