- small regression fix
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -13,7 +13,7 @@ import { insertAuditTrail } from "../../redux/application/application.actions.js
|
||||
import AuditTrailMapping from "../../utils/AuditTrailMappings.js";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { selectBodyshop, selectCurrentUser } from "../../redux/user/user.selectors.js";
|
||||
const dayjs = require('../../utils/day');
|
||||
import dayjs from "../../utils/day";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop,
|
||||
@@ -71,7 +71,7 @@ export function TaskListContainer({
|
||||
*/
|
||||
const toggleCompletedStatus = async (id, currentStatus) => {
|
||||
const completed_at = !currentStatus ? dayjs().toISOString() : null;
|
||||
|
||||
|
||||
try {
|
||||
const toggledTask = await toggleTaskCompleted({
|
||||
variables: {
|
||||
@@ -117,7 +117,7 @@ export function TaskListContainer({
|
||||
*/
|
||||
|
||||
const toggleDeletedStatus = async (id, currentStatus) => {
|
||||
const deleted_at = !currentStatus ? dayjs().toISOString() : null;
|
||||
const deleted_at = !currentStatus ? dayjs().toISOString() : null;
|
||||
try {
|
||||
const toggledTask = await toggleTaskDeleted({
|
||||
variables: {
|
||||
|
||||
Reference in New Issue
Block a user