We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81486b6 commit 83e8120Copy full SHA for 83e8120
src/packages/frontend/app-framework/redux-hooks.ts
@@ -226,7 +226,7 @@ export function useTypedRedux(
226
field: string,
227
) {
228
if (typeof a == "string") {
229
- return useRedux(a, field);
+ return useRedux([a, field]);
230
}
231
return useRedux(a.project_id, field);
232
@@ -289,7 +289,7 @@ export function useRedux(
289
290
291
if (project_id == null) {
292
- return useReduxNamedStore(path);
+ return useReduxNamedStore(typeof path == "string" ? [path] : path);
293
294
if (filename == null) {
295
if (!is_valid_uuid_string(project_id)) {
0 commit comments