Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32965614
D6816.1768295710.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6816.1768295710.diff
View Options
diff --git a/web/modals/apps/apps-directory-modal.react.js b/web/modals/apps/apps-directory-modal.react.js
--- a/web/modals/apps/apps-directory-modal.react.js
+++ b/web/modals/apps/apps-directory-modal.react.js
@@ -1,10 +1,10 @@
// @flow
import * as React from 'react';
-import { useSelector } from 'react-redux';
import { useModalContext } from 'lib/components/modal-provider.react.js';
+import { useSelector } from '../../redux/redux-utils.js';
import AppListing from '../apps/app-listing.react.js';
import css from '../apps/apps.css';
import Modal from '../modal.react.js';
@@ -37,9 +37,15 @@
() =>
APP_DIRECTORY_DATA.map(app => {
const { defaultEnabled, ...data } = app;
+ if (app.id === 'chat') {
+ return {
+ ...data,
+ enabled: defaultEnabled,
+ };
+ }
return {
...data,
- enabled: enabledApps[app.id] ?? defaultEnabled,
+ enabled: enabledApps[app.id],
};
}),
[enabledApps],
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 13, 9:15 AM (4 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5927250
Default Alt Text
D6816.1768295710.diff (1 KB)
Attached To
Mode
D6816: [web] Change import path and fix errors showing up when the typing is correct
Attached
Detach File
Event Timeline
Log In to Comment