Fix after merge 'develop'

This commit is contained in:
Timofey Boyko 2024-02-08 12:58:28 +03:00
parent c346033713
commit 6d0dd00052
2 changed files with 18 additions and 4 deletions

View File

@ -12,6 +12,7 @@ import Header from "./Header";
import { TableViewProps } from "./TableView.types";
import { TableWrapper } from "./TableView.styled";
import { UserStore } from "@docspace/shared/store/UserStore";
const TABLE_VERSION = "1";
const COLUMNS_SIZE = `oauthConfigColumnsSize_ver-${TABLE_VERSION}`;
@ -139,8 +140,14 @@ const TableView = ({
};
export default inject(
({ auth, oauthStore }: { auth: any; oauthStore: OAuthStoreProps }) => {
const { id: userId } = auth.userStore.user;
({
userStore,
oauthStore,
}: {
userStore: UserStore;
oauthStore: OAuthStoreProps;
}) => {
const userId = userStore.user?.id;
const {
viewAs,

View File

@ -10,6 +10,7 @@ import Header from "./Header";
import { TableViewProps } from "./TableView.types";
import { TableWrapper } from "./TableView.styled";
import { UserStore } from "@docspace/shared/store/UserStore";
const TABLE_VERSION = "1";
const COLUMNS_SIZE = `consentColumnsSize_ver-${TABLE_VERSION}`;
@ -95,8 +96,14 @@ const TableView = ({
};
export default inject(
({ auth, oauthStore }: { auth: any; oauthStore: OAuthStoreProps }) => {
const { id: userId } = auth.userStore.user;
({
userStore,
oauthStore,
}: {
userStore: UserStore;
oauthStore: OAuthStoreProps;
}) => {
const userId = userStore.user?.id;
const {
viewAs,