We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 197e63d commit fb9faceCopy full SHA for fb9face
plugins/plugin-codeflare/src/tray/watchers/profile/list.ts
@@ -62,11 +62,12 @@ export default class ProfileWatcher {
62
return
63
}
64
65
+ const profileObj = await Profiles.restore(this.madwizardOptions, basename(path)).then((_) => _.profile)
66
const idx = this.profiles.findIndex((_) => _.name === profile)
67
if (idx < 0) {
- this._profiles.push(await Profiles.restore(this.madwizardOptions, basename(path)).then((_) => _.profile))
68
+ this._profiles.push(profileObj)
69
} else {
- this._profiles[idx] = await Profiles.restore(this.madwizardOptions, basename(path)).then((_) => _.profile)
70
+ this._profiles[idx] = profileObj
71
72
this.updateFn()
73
} catch (err) {
0 commit comments