mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-24 07:39:10 -04:00
Persist tab selection per document (#2231)
This commit is contained in:
1 parent
2b9edee71b
commit
dfa981f6b5
1 file changed
+2
-2
@@ -67,7 +67,7 @@ class GitSyncDropdown extends React.PureComponent<Props, State> {
|
||||
|
||||
// Clear cached items and return if no state
|
||||
if (!vcs.isInitialized() || !workspaceMeta.gitRepositoryId) {
|
||||
await models.workspaceMeta.update(workspaceMeta, {
|
||||
await models.workspaceMeta.updateByParentId(workspace._id, {
|
||||
cachedGitRepositoryBranch: null,
|
||||
cachedGitLastAuthor: null,
|
||||
cachedGitLastCommitTime: null,
|
||||
@@ -86,7 +86,7 @@ class GitSyncDropdown extends React.PureComponent<Props, State> {
|
||||
|
||||
// NOTE: We're converting timestamp to ms here
|
||||
const cachedGitLastCommitTime = author ? author.timestamp * 1000 : null;
|
||||
await models.workspaceMeta.update(workspaceMeta, {
|
||||
await models.workspaceMeta.updateByParentId(workspace._id, {
|
||||
cachedGitRepositoryBranch,
|
||||
cachedGitLastAuthor,
|
||||
cachedGitLastCommitTime,
|
||||
|
||||
Reference in new issue
Block a user