From b501b52c61b64c82a58d6caeab7540d6a0f1e94a Mon Sep 17 00:00:00 2001
From: Midoux Cedric <cedric.midoux@irstea.fr>
Date: Mon, 20 Apr 2020 12:29:54 +0200
Subject: [PATCH] inherits

---
 panels/dataInput.R | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/panels/dataInput.R b/panels/dataInput.R
index 9ae2d86..932f436 100644
--- a/panels/dataInput.R
+++ b/panels/dataInput.R
@@ -173,7 +173,7 @@ observeEvent(input$okData, {
     outFile = showModal(dataInput(failed = TRUE))
     )
   
-  if (class(physeq()) == "phyloseq") {
+  if (inherits(physeq(), "phyloseq")) {
     message(paste("[Easy16S] Correct upload with", input$dataset, "mode :", message))
     removeModal()
   } else {
@@ -261,7 +261,7 @@ observeEvent(input$selectData, {
       silent = TRUE,
       outFile = showModal(dataInput(failed = TRUE)))
     
-    if (class(physeq()) == "phyloseq") {
+    if (inherits(physeq(), "phyloseq")) {
       removeModal()
     } else {
       showModal(dataInput(failed = TRUE))
-- 
GitLab