Commit c75dcd26 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when uploading data with single column ignore type of data overlay

parent 7774dd0f
Pipeline #7982 passed with stage
in 12 minutes and 39 seconds
......@@ -96,10 +96,10 @@ public class ColorSchemaReader {
*/
public Collection<ColorSchema> readColorSchema(InputStream colorInputStream, Map<String, String> params)
throws IOException, InvalidColorSchemaException {
if (params.get(ZipEntryFileFactory.LAYOUT_HEADER_PARAM_TYPE) == null) {
if (Integer.valueOf(params.get(TextFileUtils.COLUMN_COUNT_PARAM)) == 1) {
return readSimpleNameColorSchema(colorInputStream);
} else {
if (Integer.valueOf(params.get(TextFileUtils.COLUMN_COUNT_PARAM)) == 1) {
return readSimpleNameColorSchema(colorInputStream);
} else if (params.get(ZipEntryFileFactory.LAYOUT_HEADER_PARAM_TYPE) == null) {
{
return readGenericColorSchema(colorInputStream);
}
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment