From 893a46cfb81975634abb1966b1bb00b36dbdba3c Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 7 Aug 2024 20:52:29 -0700 Subject: [PATCH] feat(files): Add getter for all view configs Signed-off-by: Christopher Ng --- apps/files/src/store/viewConfig.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files/src/store/viewConfig.ts b/apps/files/src/store/viewConfig.ts index 4dc40ba1015ed..08d75b3d05047 100644 --- a/apps/files/src/store/viewConfig.ts +++ b/apps/files/src/store/viewConfig.ts @@ -21,6 +21,8 @@ export const useViewConfigStore = function(...args) { getters: { getConfig: (state) => (view: ViewId): ViewConfig => state.viewConfig[view] || {}, + + getConfigs: (state) => (): ViewConfigs => state.viewConfig, }, actions: {