mirror of
https://github.com/plankanban/planka.git
synced 2025-12-28 01:11:54 +03:00
Fix attachment duplication on add
This commit is contained in:
11
client/src/selectors/boolean.js
Normal file
11
client/src/selectors/boolean.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createSelector } from 'redux-orm';
|
||||
|
||||
import orm from '../orm';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const attachmentWithIdExistsSelector = () =>
|
||||
createSelector(
|
||||
orm,
|
||||
(_, id) => id,
|
||||
({ Attachment }, id) => Attachment.idExists(id),
|
||||
);
|
||||
@@ -3,4 +3,5 @@ export * from './all';
|
||||
export * from './path';
|
||||
export * from './current';
|
||||
export * from './by-id';
|
||||
export * from './boolean';
|
||||
export * from './next-position';
|
||||
|
||||
Reference in New Issue
Block a user