Skip to content

Commit

Permalink
fixes dirty state when a schedule is cleared (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdavella authored May 30, 2024
1 parent f050204 commit db5d572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { setCurrentLineup } from '../../store/channelEditor/actions.ts';

export const useRemoveAllProgramming = () => {
return () => {
setCurrentLineup([]);
setCurrentLineup([], true);
};
};
2 changes: 1 addition & 1 deletion web/src/hooks/programming_controls/useRemoveSpecials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useRemoveSpecials = () => {
return () => {
if (programs.length > 0) {
const newPrograms = removeSpecials(programs);
setCurrentLineup(newPrograms);
setCurrentLineup(newPrograms, true);
}
};
};
Expand Down

0 comments on commit db5d572

Please sign in to comment.