mirror of
https://github.com/plankanban/planka.git
synced 2025-12-21 17:25:39 +03:00
Add validation to background field
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user