mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-04-12 15:40:30 +08:00
commit
ffe5005c05
5
.changeset/tiny-apples-share.md
Normal file
5
.changeset/tiny-apples-share.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@lowdefy/connection-mongodb': patch
|
||||
---
|
||||
|
||||
Add MongoDbBulkWrite to MongoDBCollection requests.
|
5
.changeset/violet-papayas-breathe.md
Normal file
5
.changeset/violet-papayas-breathe.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@lowdefy/blocks-antd': patch
|
||||
---
|
||||
|
||||
Fix undefined property access in PhoneNumberInput component
|
@ -73,9 +73,9 @@ function AddOnSelect({
|
||||
mode="single"
|
||||
notFoundContent={'Not found'}
|
||||
onChange={(newVal) => {
|
||||
const input = value?.input;
|
||||
const region = uniqueValueOptions[newVal].value;
|
||||
const phone_number = `${region.dial_code}${input}`;
|
||||
const input = value?.input ?? '';
|
||||
const region = uniqueValueOptions[newVal]?.value ?? {};
|
||||
const phone_number = `${region?.dial_code ?? ''}${input}`;
|
||||
|
||||
methods.setValue({
|
||||
input,
|
||||
@ -207,8 +207,8 @@ const PhoneNumberInput = ({
|
||||
input = input.replace(regex, properties.replaceInput.replacement ?? '');
|
||||
}
|
||||
|
||||
const region = value.region;
|
||||
const phone_number = `${region.dial_code}${input}`;
|
||||
const region = value?.region ?? {};
|
||||
const phone_number = `${region?.dial_code ?? ''}${input}`;
|
||||
|
||||
methods.setValue({
|
||||
input,
|
||||
|
@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
import MongoDBAggregation from './MongoDBAggregation/MongoDBAggregation.js';
|
||||
import MongoDBBulkWrite from './MongoDBBulkWrite/MongoDBBulkWrite.js';
|
||||
import MongoDBDeleteMany from './MongoDBDeleteMany/MongoDBDeleteMany.js';
|
||||
import MongoDBDeleteOne from './MongoDBDeleteOne/MongoDBDeleteOne.js';
|
||||
import MongoDBFind from './MongoDBFind/MongoDBFind.js';
|
||||
@ -29,6 +30,7 @@ export default {
|
||||
schema,
|
||||
requests: {
|
||||
MongoDBAggregation,
|
||||
MongoDBBulkWrite,
|
||||
MongoDBDeleteMany,
|
||||
MongoDBDeleteOne,
|
||||
MongoDBFind,
|
||||
|
@ -21,6 +21,7 @@ const schema = MongoDBCollection.schema;
|
||||
|
||||
test('All requests are present', () => {
|
||||
expect(MongoDBCollection.requests.MongoDBAggregation).toBeDefined();
|
||||
expect(MongoDBCollection.requests.MongoDBBulkWrite).toBeDefined();
|
||||
expect(MongoDBCollection.requests.MongoDBDeleteMany).toBeDefined();
|
||||
expect(MongoDBCollection.requests.MongoDBDeleteOne).toBeDefined();
|
||||
expect(MongoDBCollection.requests.MongoDBFind).toBeDefined();
|
||||
|
Loading…
x
Reference in New Issue
Block a user