ms-data-grid 0.0.77 → 0.0.78

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.
@@ -1989,15 +1989,21 @@ class DataGridComponent {
1989
1989
  // this.dateFormat = user?.date_format;
1990
1990
  if (!this.dateFormat) {
1991
1991
  const storedDateFormat = localStorage.getItem('dateformat');
1992
- this.dateFormat = storedDateFormat ? JSON.parse(storedDateFormat) : 'dd/MM/yyyy';
1992
+ if (storedDateFormat) {
1993
+ this.dateFormat = storedDateFormat ? JSON.parse(storedDateFormat) : 'dd/MM/yyyy';
1994
+ }
1993
1995
  }
1994
1996
  if (!this.currencyFormat) {
1995
1997
  const storedCurrencyFormat = localStorage.getItem('currencyFormat');
1996
- this.currencyFormat = storedCurrencyFormat ? JSON.parse(storedCurrencyFormat) : '1,234,567.89';
1998
+ if (storedCurrencyFormat) {
1999
+ this.currencyFormat = storedCurrencyFormat ? JSON.parse(storedCurrencyFormat) : '1,234,567.89';
2000
+ }
1997
2001
  }
1998
2002
  if (!this.currencySymbol) {
1999
2003
  const storedCurrencySymbol = localStorage.getItem('currencySymbol');
2000
- this.currencySymbol = storedCurrencySymbol ? JSON.parse(storedCurrencySymbol) : '$';
2004
+ if (storedCurrencySymbol) {
2005
+ this.currencySymbol = storedCurrencySymbol ? JSON.parse(storedCurrencySymbol) : '$';
2006
+ }
2001
2007
  }
2002
2008
  }
2003
2009
  async ngOnChanges(changes) {