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

Fix arguments after removing explicit side effect

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-03-30 15:10:49 +03:00
parent 4efbc1de3e
commit 22d45ab6fa
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -8,6 +8,7 @@ import { getInjectable } from "@ogre-tools/injectable";
import userStoreInjectable from "../../common/user-store/user-store.injectable";
import React from "react";
import navigateToKubernetesPreferencesInjectable from "../../common/front-end-routing/routes/preferences/kubernetes/navigate-to-kubernetes-preferences.injectable";
import loggerInjectable from "../../common/logger.injectable";
const addSyncEntriesInjectable = getInjectable({
id: "add-sync-entries",
@ -15,10 +16,11 @@ const addSyncEntriesInjectable = getInjectable({
instantiate: (di) => {
const userStore = di.inject(userStoreInjectable);
const navigateToKubernetesPreferences = di.inject(navigateToKubernetesPreferencesInjectable);
const logger = di.inject(loggerInjectable);
return async (filePaths: string[]) => {
userStore.syncKubeconfigEntries.merge(
await getAllEntries(filePaths),
await getAllEntries(filePaths, logger),
);
Notifications.ok(