[Home] Fix duplicate fix causing error

pull/62/head
Oj18 3 years ago
parent 17b2c706be
commit 83c249e283

@ -163,7 +163,7 @@ export default async (goosemodScope) => {
const snippetsEnabled = goosemodScope.settings.gmSettings.snippets;
goosemodScope.settingsUninjects.push(goosemodScope.patcher.patch(ConnectedPrivateChannelsList, 'default', (_args, res) => {
if (res.props.children.props.children.some((x) => x.goosemod === true)) return;
if (res.props.children.props.children.some((x) => x?.goosemod === true)) return;
const itemWrapper = (el) => {
el.goosemod = true;
@ -397,4 +397,4 @@ export default async (goosemodScope) => {
contents['snippets'] = goosemodScope.settings._createItem(settings['snippets'][1], settings['snippets'][2], false);
})();
};
};

Loading…
Cancel
Save