Skip to content

Commit 51477d4

Browse files
authored
Merge pull request #637 from TechnologyEnhancedLearning/Develop/Fixes/TD-4783-Reference-count-not-getting-refreshed
TD-4783:Reference count not getting refreshed when folder is referenc…
2 parents 763a94c + 57f7c0b commit 51477d4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

AdminUI/LearningHub.Nhs.AdminUI/Scripts/vuesrc/content-structure/contentStructureState.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ const actions = <ActionTree<State, any>>{
501501
state.editingTreeNode.parent.childrenLoaded = false; // force reload of current now to show references
502502
await refreshNodeContents(state.editingTreeNode.parent, true).then(y => {
503503
});
504+
await refreshNodeIfMatchingNodeId(state.rootNode, state.editingTreeNode.nodeId, state.editingTreeNode.hierarchyEditDetailId, true);
504505
});
505506
}).catch(e => {
506507
state.inError = true;

LearningHub.Nhs.WebUI/Scripts/vuesrc/content-structure-admin/contentStructureState.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ const actions = <ActionTree<State, any>>{
500500
state.editingTreeNode.parent.childrenLoaded = false; // force reload of current now to show references
501501
await refreshNodeContents(state.editingTreeNode.parent, true).then(y => {
502502
});
503+
await refreshNodeIfMatchingNodeId(state.rootNode, state.editingTreeNode.nodeId, state.editingTreeNode.hierarchyEditDetailId, true);
503504
});
504505
}).catch(e => {
505506
state.inError = true;

0 commit comments

Comments
 (0)