Don't get user resources.

This commit is contained in:
Matthew Stratford 2021-04-17 14:24:27 +01:00
parent b8a9b7fba5
commit c74e3b3fc4
2 changed files with 1 additions and 15 deletions

View file

@ -67,7 +67,7 @@ function Channel({ id, data }: { id: number; data: PlanItem[] }) {
function LibraryColumn() {
const [sauce, setSauce] = useState("None");
const dispatch = useDispatch();
const { auxPlaylists, managedPlaylists, userPlaylists } = useSelector(
const { auxPlaylists, managedPlaylists } = useSelector(
(state: RootState) => state.showplan
);
@ -95,12 +95,6 @@ function LibraryColumn() {
Choose a library
</option>
<option value={"CentralMusicLibrary"}>Central Music Library</option>
<option disabled>Personal Resources</option>
{userPlaylists.map((playlist: any) => (
<option key={playlist.managedid} value={playlist.managedid}>
{playlist.title}
</option>
))}
<option disabled>Shared Resources</option>
{auxPlaylists.map((playlist: any) => (
<option

View file

@ -398,14 +398,6 @@ export const getShowplan = (timeslotId: number): AppThunk => async (
};
export const getPlaylists = (): AppThunk => async (dispatch) => {
try {
const userPlaylists = await api.getUserPlaylists();
dispatch(showplan.actions.addUserPlaylists(userPlaylists));
} catch (e) {
console.error(e);
}
try {
const managedPlaylists = await api.getManagedPlaylists();
dispatch(showplan.actions.addManagedPlaylists(managedPlaylists));