Skip to content

Commit

Permalink
fix: address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed Jun 10, 2024
1 parent 22959fb commit 2f34777
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1115,8 +1115,6 @@ export default defineComponent({
oauthTokenData: {} as CredentialInformation,
};
this.credentialsStore.enableOAuthCredential(credential);
// Close the window
if (oauthPopup) {
oauthPopup.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,9 @@ export default defineComponent({
: undefined;
},
isCredentialSharedWithCurrentUser(): boolean {
return (
Array.isArray(this.credentialData.sharedWithProjects)
? this.credentialData.sharedWithProjects
: []
).some((sharee) => {
if (!Array.isArray(this.credentialData.sharedWithProjects)) return false;
return this.credentialData.sharedWithProjects.some((sharee) => {
return typeof sharee === 'object' && 'id' in sharee
? sharee.id === this.usersStore.currentUser?.id
: false;
Expand Down
2 changes: 1 addition & 1 deletion packages/editor-ui/src/components/HoverableNodeIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default defineComponent({
const restUrl = this.rootStore.getRestUrl;
if (nodeType.icon && typeof nodeType.icon === 'string') {
if (typeof nodeType.icon === 'string') {
const [type, path] = nodeType.icon.split(':');
const returnData: NodeIconData = {
type,
Expand Down
3 changes: 0 additions & 3 deletions packages/editor-ui/src/stores/credentials.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ export const useCredentialsStore = defineStore(STORES.CREDENTIALS, {
};
}
},
enableOAuthCredential(_credential: ICredentialsResponse): void {
// enable oauth event to track change between modals
},
async fetchCredentialTypes(forceFetch: boolean): Promise<void> {
if (this.allCredentialTypes.length > 0 && !forceFetch) {
return;
Expand Down
7 changes: 1 addition & 6 deletions packages/editor-ui/src/views/TemplatesSearchView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,7 @@ export default defineComponent({
const contentArea = document.getElementById('content');
if (contentArea) {
// When leaving this page, store current scroll position in route data
if (
this.$route.meta?.setScrollPosition &&
typeof this.$route.meta.setScrollPosition === 'function'
) {
this.$route.meta.setScrollPosition(contentArea.scrollTop);
}
this.$route.meta?.setScrollPosition?.(contentArea.scrollTop);
}
this.trackSearch();
Expand Down

0 comments on commit 2f34777

Please sign in to comment.