Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 707cfdd

Browse files
authored
Merge pull request #9678 from microsoft/southworks/fix/enable-references-dropdown
fix: [#9666] Onclick Insert property reference in a memory drop down not appearing in Bot Framework Composer 2.1.3.
2 parents 1a93f21 + 2fa312f commit 707cfdd

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

Composer/packages/client/src/recoilModel/dispatchers/utils/project.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,12 @@ export const checkIfBotExistsInBotProjectFile = async (
912912
};
913913

914914
export const getMemoryVariables = async (projectId: string, options?: { signal: AbortSignal }) => {
915-
const res = await fetch(`${BASEURL}/projects/${projectId}/variables`, { signal: options?.signal });
915+
// eslint-disable-next-line no-underscore-dangle
916+
const fetchHeaders = { 'X-CSRF-Token': window.__csrf__ };
917+
const res = await fetch(`${BASEURL}/projects/${projectId}/variables`, {
918+
headers: fetchHeaders,
919+
signal: options?.signal,
920+
});
916921
const json = (await res.json()) as { variables: string[] };
917922
return json.variables ?? [];
918923
};

Composer/packages/lib/shared/src/axios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Axios, { AxiosInstance, AxiosRequestConfig } from 'axios';
66
export * from 'axios';
77

88
const csrfInterceptor = (config: AxiosRequestConfig) => {
9-
if (config.baseURL?.startsWith('/api') || config.url?.startsWith('/api')) {
9+
if (config?.baseURL?.startsWith('/api') || config?.url?.startsWith('/api')) {
1010
// eslint-disable-next-line no-underscore-dangle
1111
config.headers['X-CSRF-Token'] = ((window as unknown) as { __csrf__: string }).__csrf__;
1212
}

extensions/azurePublish/yarn-berry.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ __metadata:
19111911

19121912
"@bfc/shared@file:../../Composer/packages/lib/shared::locator=azurePublish%40workspace%3A.":
19131913
version: 0.0.0
1914-
resolution: "@bfc/shared@file:../../Composer/packages/lib/shared#../../Composer/packages/lib/shared::hash=823a6f&locator=azurePublish%40workspace%3A."
1914+
resolution: "@bfc/shared@file:../../Composer/packages/lib/shared#../../Composer/packages/lib/shared::hash=4ac2ba&locator=azurePublish%40workspace%3A."
19151915
dependencies:
19161916
"@botframework-composer/types": "*"
19171917
format-message: 6.2.4
@@ -1925,7 +1925,7 @@ __metadata:
19251925
react: 16.13.1
19261926
react-dom: 16.13.1
19271927
tslib: 2.4.0
1928-
checksum: 0151f655c015639587f6687101f0bc056a07611770ee08d2dc60dc8b61f81e7d6d21e86b4439135ec4270368eff57518c9a4e1bce48eba4099e9a998f35b9500
1928+
checksum: 167ca35df96fc7031c96dae9c3bba35fdcbb49ef03761b69c7cd61cbab963b9dd3e1e1080d96f636459af4efa676bfe8e1df1f6427f9044169a753e9b44c6f5b
19291929
languageName: node
19301930
linkType: hard
19311931

extensions/azurePublishNew/yarn-berry.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ __metadata:
19511951

19521952
"@bfc/shared@file:../../Composer/packages/lib/shared::locator=azure-publish-new%40workspace%3A.":
19531953
version: 0.0.0
1954-
resolution: "@bfc/shared@file:../../Composer/packages/lib/shared#../../Composer/packages/lib/shared::hash=823a6f&locator=azure-publish-new%40workspace%3A."
1954+
resolution: "@bfc/shared@file:../../Composer/packages/lib/shared#../../Composer/packages/lib/shared::hash=4ac2ba&locator=azure-publish-new%40workspace%3A."
19551955
dependencies:
19561956
"@botframework-composer/types": "*"
19571957
format-message: 6.2.4
@@ -1965,7 +1965,7 @@ __metadata:
19651965
react: 16.13.1
19661966
react-dom: 16.13.1
19671967
tslib: 2.4.0
1968-
checksum: 0151f655c015639587f6687101f0bc056a07611770ee08d2dc60dc8b61f81e7d6d21e86b4439135ec4270368eff57518c9a4e1bce48eba4099e9a998f35b9500
1968+
checksum: 167ca35df96fc7031c96dae9c3bba35fdcbb49ef03761b69c7cd61cbab963b9dd3e1e1080d96f636459af4efa676bfe8e1df1f6427f9044169a753e9b44c6f5b
19691969
languageName: node
19701970
linkType: hard
19711971

0 commit comments

Comments
 (0)