diff --git a/client/components/Notify/Notify.js b/client/components/Notify/Notify.js
index 85e445b1..253da0c4 100644
--- a/client/components/Notify/Notify.js
+++ b/client/components/Notify/Notify.js
@@ -7,8 +7,7 @@ export default class Notify extends Component {
super(props);
this.state = {
newVersion: process.env.version,
- version: process.env.version,
- versionNotify: process.env.versionNotify
+ version: process.env.version
};
}
@@ -23,7 +22,7 @@ export default class Notify extends Component {
}
render() {
- const isShow = this.state.versionNotify && this.state.newVersion !== this.state.version;
+ const isShow = this.state.newVersion !== this.state.version;
return (
{isShow && (
diff --git a/server/controllers/interface.js b/server/controllers/interface.js
index 0df83662..cb8de14d 100755
--- a/server/controllers/interface.js
+++ b/server/controllers/interface.js
@@ -638,12 +638,12 @@ class interfaceController extends baseController {
let annotatedCss = fs.readFileSync(
path.resolve(
yapi.WEBROOT,
- 'node_modules/jsondiffpatch/public/formatters-styles/annotated.css'
+ 'node_modules/jsondiffpatch/dist/formatters-styles/annotated.css'
),
'utf8'
);
let htmlCss = fs.readFileSync(
- path.resolve(yapi.WEBROOT, 'node_modules/jsondiffpatch/public/formatters-styles/html.css'),
+ path.resolve(yapi.WEBROOT, 'node_modules/jsondiffpatch/dist/formatters-styles/html.css'),
'utf8'
);