@integration-app/react
Advanced tools
Comparing version 0.1.24 to 0.1.25
@@ -9,3 +9,3 @@ "use strict"; | ||
const integrationApp = (0, integration_app_context_1.useIntegrationApp)(); | ||
const { data: collection, ...rest } = (0, useGetter_1.default)(dataSourceInstance?.id, () => integrationApp.dataSourceInstance(dataSourceInstance.id).getCollection()); | ||
const { data: collection, ...rest } = (0, useGetter_1.default)(dataSourceInstance === null || dataSourceInstance === void 0 ? void 0 : dataSourceInstance.id, () => integrationApp.dataSourceInstance(dataSourceInstance.id).getCollection()); | ||
return { | ||
@@ -12,0 +12,0 @@ collection, |
@@ -8,2 +8,3 @@ "use strict"; | ||
function useDataSourceInstanceLocations(dataSourceInstance, args) { | ||
var _a; | ||
const integrationApp = (0, integration_app_context_1.useIntegrationApp)(); | ||
@@ -16,3 +17,3 @@ const { data, ...rest } = (0, useGetter_1.default)(dataSourceInstance | ||
return { | ||
locations: data?.locations ?? [], | ||
locations: (_a = data === null || data === void 0 ? void 0 : data.locations) !== null && _a !== void 0 ? _a : [], | ||
...rest, | ||
@@ -19,0 +20,0 @@ }; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const [refreshCounter, setRefreshCounter] = (0, react_1.useState)(0); | ||
const selector = props?.id | ||
const selector = (props === null || props === void 0 ? void 0 : props.id) | ||
? props.id | ||
@@ -43,3 +43,3 @@ : props; | ||
...data, | ||
...(patch ?? {}), | ||
...(patch !== null && patch !== void 0 ? patch : {}), | ||
}); | ||
@@ -46,0 +46,0 @@ return accessorGenerator(integrationApp)(selector).patch(patch); |
{ | ||
"name": "@integration-app/react", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "React SDK for building native integrations.", | ||
@@ -22,3 +22,3 @@ "author": "integration.app", | ||
"dependencies": { | ||
"@integration-app/sdk": "^0.16.44" | ||
"@integration-app/sdk": "^0.16.47" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
64781
910