mirror of
https://github.com/plankanban/planka.git
synced 2025-07-29 10:09:44 +02:00
Add validation to background field
This commit is contained in:
parent
ab83d7c9ab
commit
99d9ab4a9e
10 changed files with 130 additions and 25 deletions
|
@ -54,17 +54,10 @@ const ActionsStep = React.memo(
|
|||
);
|
||||
|
||||
const handleBackgroundImageDelete = useCallback(() => {
|
||||
const data = {
|
||||
onUpdate({
|
||||
backgroundImage: null,
|
||||
};
|
||||
|
||||
// TODO: move to services?
|
||||
if (project.background && project.background.type === 'image') {
|
||||
data.background = null;
|
||||
}
|
||||
|
||||
onUpdate(data);
|
||||
}, [project.background, onUpdate]);
|
||||
});
|
||||
}, [onUpdate]);
|
||||
|
||||
if (step) {
|
||||
if (step) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue