mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 13:11:27 +10:00
release: v4.0.4
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user