Skip to content

Commit

Permalink
fix: wrong lock status update message (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinAoki authored May 28, 2024
1 parent 435af2c commit a585a13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/files-and-videos/files-page/data/thunks.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,13 @@ export function updateAssetLock({ assetId, courseId, locked }) {

try {
await updateLockStatus({ assetId, courseId, locked });
const lockStatus = locked ? 'locked' : 'public';
dispatch(updateModel({
modelType: 'assets',
model: {
id: assetId,
locked,
lockStatus: locked,
lockStatus,
},
}));
dispatch(updateEditStatus({ editType: 'lock', status: RequestStatus.SUCCESSFUL }));
Expand Down

0 comments on commit a585a13

Please sign in to comment.