1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 08:14:18 +00:00

Allow removing title from boards

This commit is contained in:
Steffo 2023-08-16 15:40:52 +02:00
parent 3544aa7315
commit 36f1e2b649
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -17,11 +17,9 @@ export function useBoardMetadataEditor() {
const stopEditingMetadata = useCallback(() => {
console.debug("[useEditableTitle] Ending title edit...");
setEditingMetadata(false);
if(titleFromEditor.length > 0) {
console.debug("[useEditableTitle] Sending title change request...");
const request: TitleBoardRequest = {"Title": titleFromEditor}
sendRequest(request)
}
}, [sendRequest, titleFromEditor])
const toggleEditingMetadata = useCallback(() => {