- enabled tables for spreadsheet;
This commit is contained in:
@@ -94,7 +94,7 @@ const BandoEditFormStep3 = forwardRef(function () {
|
|||||||
|
|
||||||
const getFormsCallback = (resp) => {
|
const getFormsCallback = (resp) => {
|
||||||
if (resp.status === 'SUCCESS') {
|
if (resp.status === 'SUCCESS') {
|
||||||
const EXCLUDED_TYPES = new Set(['fileupload', 'fileselect', 'table', 'criteria_table', 'spreadsheet']);
|
const EXCLUDED_TYPES = new Set(['fileupload', 'fileselect', 'spreadsheet']);
|
||||||
console.log('resp.data', resp.data)
|
console.log('resp.data', resp.data)
|
||||||
const raw = (resp.data ?? []).flatMap(form =>
|
const raw = (resp.data ?? []).flatMap(form =>
|
||||||
(form.content ?? [])
|
(form.content ?? [])
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ const BandoEditFormStep3Excel = forwardRef(function () {
|
|||||||
|
|
||||||
const getFormsCallback = (resp) => {
|
const getFormsCallback = (resp) => {
|
||||||
if (resp.status === 'SUCCESS') {
|
if (resp.status === 'SUCCESS') {
|
||||||
const EXCLUDED_TYPES = new Set(['fileupload', 'fileselect', 'table', 'criteria_table']);
|
const EXCLUDED_TYPES = new Set(['fileupload', 'fileselect']);
|
||||||
const raw = (resp.data ?? []).flatMap(form =>
|
const raw = (resp.data ?? []).flatMap(form =>
|
||||||
(form.content ?? [])
|
(form.content ?? [])
|
||||||
.filter(f => !EXCLUDED_TYPES.has(f.name))
|
.filter(f => !EXCLUDED_TYPES.has(f.name))
|
||||||
|
|||||||
Reference in New Issue
Block a user