From 00f410a0890ffa8dd88ded75d49e2768982545bb Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 8 Jan 2025 17:25:41 +0100 Subject: [PATCH] [Glitch] Fix use of deprecated `Iterable.isIndexed` from immutable Port 1bf61957632bff5c0a3e8d0af60eeefb41a4cc18 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/actions/store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/actions/store.js b/app/javascript/flavours/glitch/actions/store.js index 4a33d7ef87..b2d19575c4 100644 --- a/app/javascript/flavours/glitch/actions/store.js +++ b/app/javascript/flavours/glitch/actions/store.js @@ -1,4 +1,4 @@ -import { Iterable, fromJS } from 'immutable'; +import { fromJS, isIndexed } from 'immutable'; import { hydrateCompose } from './compose'; import { importFetchedAccounts } from './importer'; @@ -10,7 +10,7 @@ export const STORE_HYDRATE_LAZY = 'STORE_HYDRATE_LAZY'; const convertState = rawState => fromJS(rawState, (k, v) => - Iterable.isIndexed(v) ? v.toList() : v.toMap()); + isIndexed(v) ? v.toList() : v.toMap()); const applyMigrations = (state) => { return state.withMutations(state => {