Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7163 | Rev 7165 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7163 Rev 7164
Línea 108... Línea 108...
108
        }
108
        }
Línea 109... Línea 109...
109
 
109
 
110
        setQuestions(data.items)
110
        setQuestions(data.items)
111
        setCurrentPage(data.page)
111
        setCurrentPage(data.page)
112
        setTotalPages(data.total_pages)
-
 
113
        addUrl.current = data.link_add
112
        setTotalPages(data.total_pages)
114
      })
113
      })
115
      .catch((error) => {
114
      .catch((error) => {
116
        dispatch(
115
        dispatch(
117
          addNotification({
116
          addNotification({
Línea 239... Línea 238...
239
            <QuestionsGrid className="mt-3">
238
            <QuestionsGrid className="mt-3">
240
              {questions.length ? (
239
              {questions.length ? (
241
                questions.map((question) => (
240
                questions.map((question) => (
242
                  <QuestionCard
241
                  <QuestionCard
243
                    key={question.uuid}
242
                    key={question.uuid}
244
                    {...question}
-
 
245
                    onEdit={editQuestion}
243
                    onEdit={editQuestion}
246
                    onDelete={deleteQuestion}
244
                    onDelete={deleteQuestion}
-
 
245
                    {...question}
247
                  />
246
                  />
248
                ))
247
                ))
249
              ) : (
248
              ) : (
250
                <EmptySection
249
                <EmptySection
251
                  message={labels.error_no_record_matched_your_query}
250
                  message={labels.error_no_record_matched_your_query}