release: v4.0.4

This commit is contained in:
Amruth Pillai
2024-01-19 10:04:23 +01:00
parent 643348046f
commit 8bca7f5390
6 changed files with 2627 additions and 2897 deletions

View File

@ -63,9 +63,10 @@ export const SectionDialog = <T extends SectionItem>({
if (!section) return;
if (isCreate || isDuplicate) {
if (pendingKeyword && values.keywords) {
if (pendingKeyword && "keywords" in values) {
values.keywords.push(pendingKeyword);
}
setValue(
`sections.${id}.items`,
produce(section.items, (draft: T[]): void => {
@ -77,7 +78,7 @@ export const SectionDialog = <T extends SectionItem>({
if (isUpdate) {
if (!payload.item?.id) return;
if (pendingKeyword && values.keywords) {
if (pendingKeyword && "keywords" in values) {
values.keywords.push(pendingKeyword);
}