mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 01:32:02 +10:00
fix(webkit): fix issue with webkit not supporting .at()
This commit is contained in:
@ -82,7 +82,7 @@ export const resumeSlice = createSlice({
|
||||
},
|
||||
deleteSection: (state: Resume, action: PayloadAction<DeleteSectionPayload>) => {
|
||||
const { path } = action.payload;
|
||||
const id = path ? path.split('.').at(-1) : '';
|
||||
const id = path.split('.')[1];
|
||||
|
||||
const sections = Object.keys(state.sections).filter((x) => x !== id);
|
||||
const layout = state.metadata.layout.map((pages) => pages.map((list) => list.filter((x) => x !== id)));
|
||||
|
||||
Reference in New Issue
Block a user