Skip to content

Commit

Permalink
Try to fix logic connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Nov 20, 2023
1 parent 862c722 commit 13d110a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const globals = {
}

module.exports = {
ignorePatterns: ['node_modules', 'plugin-server'],
ignorePatterns: ['node_modules', 'plugin-server', 'cypress'],
env,
settings: {
react: {
Expand Down Expand Up @@ -42,7 +42,7 @@ module.exports = {
},
ecmaVersion: 2018,
sourceType: 'module',
project: 'tsconfig.json'
project: 'tsconfig.json',
},
plugins: ['prettier', 'react', 'cypress', '@typescript-eslint', 'no-only-tests', 'jest', 'compat', 'posthog'],
rules: {
Expand Down Expand Up @@ -254,7 +254,7 @@ module.exports = {
rules: {
// The below complains needlessly about expect(api.createInvite).toHaveBeenCalledWith(...)
'@typescript-eslint/unbound-method': 'off',
}
},
},
{
// disable these rules for files generated by kea-typegen
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/scenes/apps/frontendAppSceneLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const frontendAppSceneLogic = kea<frontendAppSceneLogicType>([
path(['scenes', 'apps', 'frontendAppSceneLogic']),
props({} as FrontendAppSceneLogicProps),
key((props) => props.id),
connect({
connect(() => ({
values: [frontendAppsLogic, ['frontendApps', 'appConfigs']],
}),
})),
selectors(() => ({
// Frontend app created after receiving a bundle via import('').getFrontendApp()
frontendApp: [
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/plugins/pluginsLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function loadPaginatedResults(

export const pluginsLogic = kea<pluginsLogicType>([
path(['scenes', 'plugins', 'pluginsLogic']),
connect(frontendAppsLogic),
connect(() => frontendAppsLogic),
actions({
editPlugin: (id: number | null, pluginConfigChanges: Record<string, any> = {}) => ({ id, pluginConfigChanges }),
savePluginConfig: (pluginConfigChanges: Record<string, any>) => ({ pluginConfigChanges }),
Expand Down

0 comments on commit 13d110a

Please sign in to comment.