mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 15:06:19 -05:00
Fixing console errors.
This commit is contained in:
parent
e5b2135cb2
commit
5fc99a6dda
3 changed files with 4 additions and 12 deletions
|
|
@ -1,12 +1,4 @@
|
|||
import {
|
||||
API_URI,
|
||||
ARCHIVES_API,
|
||||
DEFAULT_LIMIT,
|
||||
emptyToNull,
|
||||
OTP_API,
|
||||
secondsToDateTime,
|
||||
VIDEOS_API
|
||||
} from "./components/Common";
|
||||
import {API_URI, ARCHIVES_API, DEFAULT_LIMIT, emptyToNull, OTP_API, VIDEOS_API} from "./components/Common";
|
||||
import {toast} from 'react-semantic-toasts';
|
||||
|
||||
function timeoutPromise(ms, promise) {
|
||||
|
|
@ -472,7 +464,7 @@ const replaceFileDatetimes = (files) => {
|
|||
for (let i = 0; i < files.length; i++) {
|
||||
let file = files[i];
|
||||
if (file['modified']) {
|
||||
files[i]['modified'] = secondsToDateTime(file['modified']);
|
||||
files[i]['modified'] = file['modified'] * 1000;
|
||||
}
|
||||
}
|
||||
return files;
|
||||
|
|
|
|||
|
|
@ -443,7 +443,7 @@ class ChannelPage extends APIForm {
|
|||
<Button color='blue' onClick={this.downloadChannel}>
|
||||
Download
|
||||
</Button>
|
||||
<Button color='inverted blue' onClick={this.refreshChannel}>
|
||||
<Button inverted color='blue' onClick={this.refreshChannel}>
|
||||
Refresh
|
||||
</Button>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ export function VideoCard({video}) {
|
|||
|
||||
let imageLabel = null;
|
||||
if (video.favorite) {
|
||||
imageLabel = {as: 'a', corner: 'left', icon: 'heart', color: 'green'};
|
||||
imageLabel = {corner: 'left', icon: 'heart', color: 'green'};
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue