Skip to content

Commit

Permalink
Merge pull request #3 from christianp86/fix-localForage
Browse files Browse the repository at this point in the history
Fix local forage
  • Loading branch information
christianp86 authored May 2, 2020
2 parents 11a04d1 + ea719a9 commit b1adae7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trasta",
"version": "1.0.1",
"version": "1.0.2",
"description": "Helps you to keep track of your household trash",
"engines": {
"node": "12.x.x"
Expand Down
7 changes: 2 additions & 5 deletions webapp/controller/App.controller.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@


sap.ui.define([
"./BaseController",
"sap/base/Log",
"com/fidschenberger/wasteStatsApp/libs/localforage.min",
], function (Controller, Log, localForage) {
"sap/base/Log"
], function (Controller, Log) {
"use strict";

return Controller.extend("com.fidschenberger.wasteStatsApp.controller.App", {
Expand Down
2 changes: 1 addition & 1 deletion webapp/controller/Home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sap.ui.define([

localforage.getItem('waste')
.then((value) => {
if (value !== null || value !== undefined) {
if (value !== null) {
Log.info("Load data from localForage");
this._setWasteItemsInModel(value);
} else {
Expand Down

0 comments on commit b1adae7

Please sign in to comment.