Skip to content

Commit

Permalink
Initialize assets uiId
Browse files Browse the repository at this point in the history
  • Loading branch information
apbetioli committed Jun 3, 2024
1 parent 411712b commit ea656f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/features/admin-slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ const adminSlice = createSlice({
lesson.order |= index
})
})
state.course.assets.forEach((asset) => {
asset.uiId = asset.id
})
},
)
builder.addMatcher(
Expand Down

0 comments on commit ea656f5

Please sign in to comment.