散布実績: 名称未入力時のバリデーションエラーを追加
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -358,6 +358,10 @@ function SpreadingPageContent() {
|
|||||||
const handleSave = async () => {
|
const handleSave = async () => {
|
||||||
if (!form) return;
|
if (!form) return;
|
||||||
setError(null);
|
setError(null);
|
||||||
|
if (!form.name.trim()) {
|
||||||
|
setError('名称を入力してください。');
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!form.date) {
|
if (!form.date) {
|
||||||
setError('散布日を入力してください。');
|
setError('散布日を入力してください。');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user