fix an assorted set of issues, more info on linear

This commit is contained in:
Amruth Pillai
2023-11-22 22:50:21 +01:00
parent 4baecb22e9
commit 4687091ebd
7 changed files with 57 additions and 50 deletions

View File

@ -47,7 +47,8 @@ export const useResumeStore = create<ResumeStore>()(
};
set((state) => {
state.resume.data.metadata.layout[0][0].push(`custom.${section.id}`);
const lastPageIndex = state.resume.data.metadata.layout.length - 1;
state.resume.data.metadata.layout[lastPageIndex][0].push(`custom.${section.id}`);
state.resume.data = _set(state.resume.data, `sections.custom.${section.id}`, section);
debouncedUpdateResume(JSON.parse(JSON.stringify(state.resume)));