diff --git a/src/components/editors/SortableAudioGrid/index.tsx b/src/components/editors/SortableAudioGrid/index.tsx
index 98a40cb3..cb919d95 100644
--- a/src/components/editors/SortableAudioGrid/index.tsx
+++ b/src/components/editors/SortableAudioGrid/index.tsx
@@ -18,7 +18,10 @@ const SortableAudioGrid = SortableContainer(
locked: IUploadStatus[];
onDrop: (file_id: IFile['id']) => void;
onTitleChange: (file_id: IFile['id'], title: IFile['metadata']['title']) => void;
- }) => (
+ }) => {
+ console.log(locked);
+
+ return (
{items
.filter(file => file && file.id)
@@ -34,7 +37,8 @@ const SortableAudioGrid = SortableContainer(
))}
- )
+ );
+ }
);
export { SortableAudioGrid };
diff --git a/src/components/node/CommentForm/index.tsx b/src/components/node/CommentForm/index.tsx
index 4b9ce225..b9bc991d 100644
--- a/src/components/node/CommentForm/index.tsx
+++ b/src/components/node/CommentForm/index.tsx
@@ -1,10 +1,10 @@
-import React, { FC, useCallback, KeyboardEventHandler, useEffect, useMemo, memo } from 'react';
+import React, { FC, KeyboardEventHandler, memo, useCallback, useEffect, useMemo } from 'react';
import { Textarea } from '~/components/input/Textarea';
import * as styles from './styles.scss';
import { Filler } from '~/components/containers/Filler';
import { Button } from '~/components/input/Button';
import assocPath from 'ramda/es/assocPath';
-import { InputHandler, IFileWithUUID, IFile } from '~/redux/types';
+import { IFile, IFileWithUUID, InputHandler } from '~/redux/types';
import { connect } from 'react-redux';
import * as NODE_ACTIONS from '~/redux/node/actions';
import { selectNode } from '~/redux/node/selectors';
@@ -233,6 +233,10 @@ const CommentFormUnconnected: FC = memo(
const placeholder = getRandomPhrase('SIMPLE');
+ const hasImageAttaches = images.length > 0 || locked_images.length > 0;
+ const hasAudioAttaches = audios.length > 0 || locked_audios.length > 0;
+ const hasAttaches = hasImageAttaches || hasAudioAttaches;
+
return (