@campxdev/shared 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/ErrorBoundary/ErrorFallback.tsx +1 -1
- package/src/components/Selectors/FormSelectors/MultiSelect/MultiFacultySelector.tsx +2 -1
- package/src/components/Selectors/FormSelectors/MultiSelect/MultiFeeTypeSelector.tsx +1 -1
- package/src/components/Selectors/FormSelectors/MultiSelect/MultiProgramSelector.tsx +4 -1
- package/src/components/Selectors/FormSelectors/MultiSelect/MultiQuotaSelector.tsx +4 -1
package/package.json
CHANGED
|
@@ -43,6 +43,7 @@ const MultiFacultySelector = (props: MultiFacultySelectorProps) => {
|
|
|
43
43
|
axios
|
|
44
44
|
.get(api, {
|
|
45
45
|
params: filters,
|
|
46
|
+
workspace: false,
|
|
46
47
|
})
|
|
47
48
|
.then((response) => {
|
|
48
49
|
setOptions(response.data.data)
|
|
@@ -54,7 +55,7 @@ const MultiFacultySelector = (props: MultiFacultySelectorProps) => {
|
|
|
54
55
|
}
|
|
55
56
|
} else if (options.length === 0) {
|
|
56
57
|
axios
|
|
57
|
-
.get(api)
|
|
58
|
+
.get(api, { workspace: false })
|
|
58
59
|
.then((response) => {
|
|
59
60
|
setOptions(response.data.data)
|
|
60
61
|
})
|
|
@@ -30,7 +30,7 @@ const MultiFeeTypeSelector = (props: MultiProgramSelectorProps) => {
|
|
|
30
30
|
const handleOpen = () => {
|
|
31
31
|
if (options.length === 0) {
|
|
32
32
|
axios
|
|
33
|
-
.get('/paymentx/fee-types')
|
|
33
|
+
.get('/paymentx/fee-types', { workspace: false })
|
|
34
34
|
.then((response) => {
|
|
35
35
|
setOptions(response.data)
|
|
36
36
|
})
|
|
@@ -38,6 +38,7 @@ const MultiProgramSelector = (props: MultiProgramSelectorProps) => {
|
|
|
38
38
|
axios
|
|
39
39
|
.get(api, {
|
|
40
40
|
params: filters,
|
|
41
|
+
workspace: false,
|
|
41
42
|
})
|
|
42
43
|
.then((response) => {
|
|
43
44
|
setOptions(response.data)
|
|
@@ -49,7 +50,9 @@ const MultiProgramSelector = (props: MultiProgramSelectorProps) => {
|
|
|
49
50
|
}
|
|
50
51
|
} else if (options.length === 0) {
|
|
51
52
|
axios
|
|
52
|
-
.get(api
|
|
53
|
+
.get(api, {
|
|
54
|
+
workspace: false,
|
|
55
|
+
})
|
|
53
56
|
.then((response) => {
|
|
54
57
|
setOptions(response.data)
|
|
55
58
|
})
|
|
@@ -38,6 +38,7 @@ export default function MultiQuotaSelector(props: MultiQuotaSelectorProps) {
|
|
|
38
38
|
axios
|
|
39
39
|
.get(api, {
|
|
40
40
|
params: filters,
|
|
41
|
+
workspace: false,
|
|
41
42
|
})
|
|
42
43
|
.then((response) => {
|
|
43
44
|
setOptions(
|
|
@@ -51,7 +52,9 @@ export default function MultiQuotaSelector(props: MultiQuotaSelectorProps) {
|
|
|
51
52
|
}
|
|
52
53
|
} else if (options.length === 0) {
|
|
53
54
|
axios
|
|
54
|
-
.get(api
|
|
55
|
+
.get(api, {
|
|
56
|
+
workspace: false,
|
|
57
|
+
})
|
|
55
58
|
.then((response) => {
|
|
56
59
|
setOptions(
|
|
57
60
|
api == '/square/quotas' ? response.data : response.data.quota,
|