Page MenuHomePhabricator

D6816.id23281.diff
No OneTemporary

D6816.id23281.diff

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

Mime Type
text/plain
Expires
Mon, Dec 2, 2:33 PM (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2607621
Default Alt Text
D6816.id23281.diff (1 KB)

Event Timeline