@qrvey/utils 1.4.2 → 1.4.3
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/README.md
CHANGED
|
@@ -45,11 +45,11 @@ const defineTableChartFormat = (column, settings) => {
|
|
|
45
45
|
case COLUMN_1.COLUMN.TEXT_LABEL:
|
|
46
46
|
return STRING_FORMAT_1.STRING_FORMAT.NONE;
|
|
47
47
|
case COLUMN_1.COLUMN.DATE: {
|
|
48
|
-
if (selectedFormat)
|
|
49
|
-
return selectedFormat;
|
|
50
48
|
if (noFormatSupported) {
|
|
51
49
|
return STRING_FORMAT_1.STRING_FORMAT.NONE;
|
|
52
50
|
}
|
|
51
|
+
if (selectedFormat)
|
|
52
|
+
return selectedFormat;
|
|
53
53
|
if (hasDefaultFormat) {
|
|
54
54
|
const columnDefaultFormat = defaultFormat ||
|
|
55
55
|
outputFormat || { type: "DATE", format: "MM/DD/YYYY" };
|
|
@@ -42,11 +42,11 @@ export const defineTableChartFormat = (column, settings) => {
|
|
|
42
42
|
case COLUMN.TEXT_LABEL:
|
|
43
43
|
return STRING_FORMAT.NONE;
|
|
44
44
|
case COLUMN.DATE: {
|
|
45
|
-
if (selectedFormat)
|
|
46
|
-
return selectedFormat;
|
|
47
45
|
if (noFormatSupported) {
|
|
48
46
|
return STRING_FORMAT.NONE;
|
|
49
47
|
}
|
|
48
|
+
if (selectedFormat)
|
|
49
|
+
return selectedFormat;
|
|
50
50
|
if (hasDefaultFormat) {
|
|
51
51
|
const columnDefaultFormat = defaultFormat ||
|
|
52
52
|
outputFormat || { type: "DATE", format: "MM/DD/YYYY" };
|