@@ -1,6 +1,12 @@
|
||||
/*!
|
||||
* Copyright (c) 2024 PLANKA Software GmbH
|
||||
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
||||
*/
|
||||
|
||||
import { createSelector } from 'redux-orm';
|
||||
|
||||
import orm from '../orm';
|
||||
import { isLocalId } from '../utils/local-id';
|
||||
|
||||
export const makeSelectLabelById = () =>
|
||||
createSelector(
|
||||
@@ -13,7 +19,10 @@ export const makeSelectLabelById = () =>
|
||||
return labelModel;
|
||||
}
|
||||
|
||||
return labelModel.ref;
|
||||
return {
|
||||
...labelModel.ref,
|
||||
isPersisted: !isLocalId(labelModel.id),
|
||||
};
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user