Skip to content

Commit

Permalink
Import lodash for chain again
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Sep 23, 2020
1 parent 2ff6a22 commit bfe268a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/files/src/store/actions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from 'moment'
import uniqueId from 'lodash/uniqueId'
import chain from 'lodash/chain'
import _ from 'lodash'
import { getParentPaths } from '../helpers/path'
import { bitmaskToRole, permissionsBitmask } from '../helpers/collaborators'
import { shareTypes } from '../helpers/shareTypes'
Expand Down Expand Up @@ -59,7 +59,7 @@ function _buildFile(file) {
shareTypes: (function() {
let shareTypes = file.fileInfo['{http://owncloud.org/ns}share-types']
if (shareTypes) {
shareTypes = chain(shareTypes)
shareTypes = _.chain(shareTypes)
.filter(
xmlvalue =>
xmlvalue.namespaceURI === 'http://owncloud.org/ns' &&
Expand Down Expand Up @@ -147,7 +147,7 @@ function _buildFileInTrashbin(file) {
function _aggregateFileShares(data, incomingShares = false) {
// borrowed from owncloud's apps/files_sharing/js/sharedfilelist.js#_makeFilesFromShares(data)
var files = data
files = chain(files)
files = _.chain(files)
// convert share data to file data
.map(share => {
var file = {
Expand Down

0 comments on commit bfe268a

Please sign in to comment.