Theme update refetch themes (#4812)

This commit is contained in:
Paulus Schoutsen 2020-02-10 01:10:39 -08:00 committed by GitHub
parent cc6686a790
commit ba4e1949c4

View File

@ -8,7 +8,7 @@ const fetchThemes = (conn) =>
const subscribeUpdates = (conn, store) =>
conn.subscribeEvents(
(event) => store.setState(event.data, true),
() => fetchThemes(conn).then((data) => store.setState(data, true)),
"themes_updated"
);