From 38c9b733887fd43ecb176be5126fc321136ebb5a Mon Sep 17 00:00:00 2001 From: Troels Ugilt Jensen <6103205+tuj@users.noreply.github.com> Date: Mon, 11 Dec 2023 12:02:44 +0100 Subject: [PATCH] Fixed caching issues when adding/removing playlists from slide --- CHANGELOG.md | 2 ++ src/redux/api.js | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81f44741..efaa37a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +- [#225](https://github.com/os2display/display-admin-client/pull/225) + - Fixed caching issues when adding/removing playlists from slide. - [#223](https://github.com/os2display/display-admin-client/pull/223) - Updated to API Platform 3 - [#222](https://github.com/os2display/display-admin-client/pull/222) diff --git a/src/redux/api.js b/src/redux/api.js index 155bc5fb..cbed8259 100644 --- a/src/redux/api.js +++ b/src/redux/api.js @@ -81,12 +81,19 @@ generatedApi.enhanceEndpoints({ providesTags: ["Playlist"], }, getV1PlaylistsByIdSlides: { - providesTags: ["Playlist"], + providesTags: ["Playlist", "Slide"], + }, + getV1SlidesByIdPlaylists: { + providesTags: ["Playlist", "Slide"], }, putV1PlaylistsByIdSlides: { providesTags: ["Playlist", "Slide"], invalidatesTags: ["Playlist", "Slide"], }, + putV1SlidesByIdPlaylists: { + providesTags: ["Playlist", "Slide"], + invalidatesTags: ["Playlist", "Slide"], + }, deleteV1PlaylistsByIdSlidesAndSlideId: { providesTags: ["Playlist", "Slide"], invalidatesTags: ["Playlist", "Slide"],