This commit is contained in:
Dobromir Popov
2024-04-05 20:31:56 +03:00
parent 10939019e8
commit 5e1415046d

View File

@ -26,7 +26,7 @@ export default function AvailabilityForm({ publisherId, existingItems, inline, o
};
//coalsce existingItems to empty array
let existingItems = existingItems || [];
existingItems = existingItems || [];
const [editMode, setEditMode] = useState(existingItems.length > 0);
const [publisher, setPublisher] = useState({ id: publisherId });