mirror of
https://github.com/nocobase/nocobase
synced 2024-11-14 16:34:14 +00:00
fix: cannot read properties of undefined (reading 'type')
Some checks failed
Build Docker Image / build-and-push (push) Has been cancelled
Build Pro Image / build-and-push (push) Has been cancelled
E2E / Build (push) Has been cancelled
NocoBase FrontEnd Test / frontend-test (18) (push) Has been cancelled
E2E / Core and plugins (push) Has been cancelled
E2E / plugin-workflow (push) Has been cancelled
E2E / plugin-workflow-approval (push) Has been cancelled
E2E / plugin-data-source-main (push) Has been cancelled
E2E / Comment on PR (push) Has been cancelled
Some checks failed
Build Docker Image / build-and-push (push) Has been cancelled
Build Pro Image / build-and-push (push) Has been cancelled
E2E / Build (push) Has been cancelled
NocoBase FrontEnd Test / frontend-test (18) (push) Has been cancelled
E2E / Core and plugins (push) Has been cancelled
E2E / plugin-workflow (push) Has been cancelled
E2E / plugin-workflow-approval (push) Has been cancelled
E2E / plugin-data-source-main (push) Has been cancelled
E2E / Comment on PR (push) Has been cancelled
This commit is contained in:
parent
dedca47d1d
commit
512df745fa
@ -45,7 +45,7 @@ export const GridCardItem = withDynamicSchemaProps(
|
||||
const field = useField<ObjectField>();
|
||||
const parentRecordData = useCollectionParentRecordData();
|
||||
return (
|
||||
<Card role="button" aria-label="grid-card-item" className={gridCardCss}>
|
||||
<Card bordered={false} role="button" aria-label="grid-card-item" className={gridCardCss}>
|
||||
<div className={itemCss}>
|
||||
<RecordProvider record={field.value} parent={parentRecordData}>
|
||||
{props.children}
|
||||
|
@ -7,18 +7,17 @@
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import Handlebars from 'handlebars';
|
||||
import { dayjs } from '@nocobase/utils/client';
|
||||
import helpers from '@budibase/handlebars-helpers';
|
||||
import { dayjs, getPickerFormat } from '@nocobase/utils/client';
|
||||
import Handlebars from 'handlebars';
|
||||
import _, { every, findIndex, some } from 'lodash';
|
||||
import { getPickerFormat } from '@nocobase/utils/client';
|
||||
import url from 'url';
|
||||
import { replaceVariableValue } from '../../../block-provider/hooks';
|
||||
import { VariableOption, VariablesContextType } from '../../../variables/types';
|
||||
import { isVariable } from '../../../variables/utils/isVariable';
|
||||
import { transformVariableValue } from '../../../variables/utils/transformVariableValue';
|
||||
import { getJsonLogic } from '../../common/utils/logic';
|
||||
import { inferPickerType } from '../../antd/date-picker/util';
|
||||
import url from 'url';
|
||||
import { getJsonLogic } from '../../common/utils/logic';
|
||||
type VariablesCtx = {
|
||||
/** 当前登录的用户 */
|
||||
$user?: Record<string, any>;
|
||||
@ -129,6 +128,7 @@ export const conditionAnalyses = async ({
|
||||
let currentInputValue = transformVariableValue(targetValue, { targetCollectionField });
|
||||
const comparisonValue = transformVariableValue(value, { targetCollectionField });
|
||||
if (
|
||||
targetCollectionField?.type &&
|
||||
['datetime', 'date', 'datetimeNoTz', 'dateOnly', 'unixTimestamp'].includes(targetCollectionField.type) &&
|
||||
currentInputValue
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user