12 lines
285 B
JavaScript
12 lines
285 B
JavaScript
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),
|
|
);
|