Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Filemanager/js): only show virtual node with path filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Mar 21, 2023
1 parent 8356ddc commit 6e402ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tine20/Filemanager/js/Model.js
Expand Up @@ -223,9 +223,9 @@ Tine.Filemanager.nodeBackendMixin = {
const cb = options.success;
options.success = async function (response) {
const path = _.get(_.find(filter, {field: 'path'}), 'value');
if (path) {

if (path && filter.length === 1) {
const virtualNodes = await Tine.Tinebase.uploadManager.getProcessingNodesByPath(path);

_.each(virtualNodes, (nodeData) => {
if (!_.find(_.map(response.records, 'data'), {name: nodeData.name})) {
response.records.push(new this.recordClass(nodeData));
Expand Down

0 comments on commit 6e402ca

Please sign in to comment.