Fixes (#2256)
This commit is contained in:
@ -22,7 +22,6 @@ module.exports = {
|
|||||||
'@': path.resolve(__dirname, 'src/modules'),
|
'@': path.resolve(__dirname, 'src/modules'),
|
||||||
'@testing': path.resolve(__dirname, 'src/testing'),
|
'@testing': path.resolve(__dirname, 'src/testing'),
|
||||||
},
|
},
|
||||||
mode: 'extends',
|
|
||||||
// TODO: remove this workaround by resolving source map errors with @sniptt/guards
|
// TODO: remove this workaround by resolving source map errors with @sniptt/guards
|
||||||
configure: {
|
configure: {
|
||||||
module: {
|
module: {
|
||||||
|
|||||||
@ -36,10 +36,12 @@ export const ObjectDataTableEffect = ({
|
|||||||
const tableRecoilScopeId = useRecoilScopeId(TableRecoilScopeContext);
|
const tableRecoilScopeId = useRecoilScopeId(TableRecoilScopeContext);
|
||||||
const handleViewSelect = useRecoilCallback(
|
const handleViewSelect = useRecoilCallback(
|
||||||
({ set, snapshot }) =>
|
({ set, snapshot }) =>
|
||||||
(viewId: string) => {
|
(viewId: string) => {
|
||||||
const currentView = snapshot.getLoadable(
|
const currentView = snapshot
|
||||||
currentViewIdScopedState({ scopeId: tableRecoilScopeId }),
|
.getLoadable(
|
||||||
).getValue()
|
currentViewIdScopedState({ scopeId: tableRecoilScopeId }),
|
||||||
|
)
|
||||||
|
.getValue();
|
||||||
|
|
||||||
if (currentView === viewId) {
|
if (currentView === viewId) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import { useRecoilCallback } from 'recoil';
|
|||||||
|
|
||||||
import { ColumnDefinition } from '@/ui/data/data-table/types/ColumnDefinition';
|
import { ColumnDefinition } from '@/ui/data/data-table/types/ColumnDefinition';
|
||||||
import { FieldMetadata } from '@/ui/data/field/types/FieldMetadata';
|
import { FieldMetadata } from '@/ui/data/field/types/FieldMetadata';
|
||||||
|
import { GET_VIEWS } from '@/views/graphql/queries/getViews';
|
||||||
import { currentViewIdScopedState } from '@/views/states/currentViewIdScopedState';
|
import { currentViewIdScopedState } from '@/views/states/currentViewIdScopedState';
|
||||||
import { savedViewFieldByKeyScopedFamilySelector } from '@/views/states/selectors/savedViewFieldByKeyScopedFamilySelector';
|
import { savedViewFieldByKeyScopedFamilySelector } from '@/views/states/selectors/savedViewFieldByKeyScopedFamilySelector';
|
||||||
import { viewObjectIdScopeState } from '@/views/states/viewObjectIdScopeState';
|
import { viewObjectIdScopeState } from '@/views/states/viewObjectIdScopeState';
|
||||||
@ -13,7 +14,6 @@ import {
|
|||||||
} from '~/generated/graphql';
|
} from '~/generated/graphql';
|
||||||
|
|
||||||
import { GET_VIEW_FIELDS } from '../../graphql/queries/getViewFields';
|
import { GET_VIEW_FIELDS } from '../../graphql/queries/getViewFields';
|
||||||
import { GET_VIEWS } from '@/views/graphql/queries/getViews';
|
|
||||||
|
|
||||||
export const toViewFieldInput = (
|
export const toViewFieldInput = (
|
||||||
objectId: string,
|
objectId: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user